linux的小命令-fuck


今天看到個名為fuck的linux的遂好奇看一下這是個什么命令【滑稽】

一、fuck簡介

先看下官方github的介紹,地址:https://github.com/nvbn/thefuck

The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands.

The Fuck是一款功能強大的應用程序,靈感來自@liamosaur,可糾正以前的控制台命令中的錯誤。

也就是說你在linux中寫錯命令,fuck他一下他就會幫你糾正錯誤

我就經常拼錯systemctl這個命令很是苦惱,所以fuckfuck他一下

二、使用fuck

我這里的環境是Centos,其他環境查看github官方地址都有的

這里需要python環境,默認已安裝

pip install thefuck

eval $(thefuck --alias)

安裝完之后我們嘗試用一下命令

[root@VM_0_2_centos ~]# systemstl
-bash: systemstl: command not found
[root@VM_0_2_centos ~]# fuck
systemctl [enter/↑/↓/ctrl+c]
Aborted
[root@VM_0_2_centos ~]# systemstl start mysql
-bash: systemstl: command not found
[root@VM_0_2_centos ~]# fuck
systemd-cat start mysql [enter/↑/↓/ctrl+c]
Aborted
[root@VM_0_2_centos ~]# ^C

感覺炒雞好用,fuck!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM