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