linux命令:FUCk
-
fuck:自动纠正错误命令
-
下载
# pip install thefuck
- 添加环境变量
# tail -n 1 ~/.bashrc
eval $(thefuck --alias)
- 使用
# sl
-bash: sl: command not found
[root@ansible Software]# fuck
ls [enter/↑/↓/ctrl+c]
Python-3.7.0 Python-3.7.0.tgz
[root@ansible Software]# puthon
-bash: puthon: command not found
[root@ansible Software]# fuck
python [enter/↑/↓/ctrl+c]
Python 3.7.0 (default, Oct 25 2019, 12:30:36)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
- 很有意思的一条命令,记录一下。
网友评论