今天看到个名为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

也就是说你在linux中写错命令,fuck他一下他就会帮你纠正错误

我就经常拼错systemctl这个命令很是苦恼,所以fuckfuck他一下

二、使用fuck

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

linux的小命令-fuck

这里需要python环境,默认已安装

pip install thefuck

eval $(thefuck --alias)

linux的小命令-fuck

安装完之后我们尝试用一下命令

[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

linux的小命令-fuck

感觉炒鸡好用,fuck!

相关文章:

  • 2022-01-01
  • 2022-01-10
  • 2021-08-22
  • 2019-06-24
  • 2021-10-03
  • 2022-02-05
  • 2022-02-24
  • 2021-07-27
猜你喜欢
  • 2022-02-26
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-11-15
  • 2021-07-14
相关资源
相似解决方案