linux帮助纠正错误命令fuck
官方地址
https://github.com/nvbn/thefuck
mac安装
brew install thefuck
linux
#因为是基于python安装的
pip3 install thefuck
尝试使用
[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