没毛病,命令行就应该这样学!

2024-10-15 14:50:58

1、受此启发,一位名为Vladimir Iakovlev程序员对这个该死的终端发出了致命一击!他以及他的90 位愤怒的小伙伴们打造出了一个名为 “thefuck” 的神器!当你的终端没有按你想象的输入命令时,请 fuck 它!当你的终端没有按你想象的以 sudo 执行命令时,请 fuck 它!当你的的终端不知道填上显而易见的参数时,请 fuck 它!

没毛病,命令行就应该这样学!

2、当你输入错误的命令时:➜ puthon 鲍伊酷雪No command 'puthon' found, did you mean: Command &垆杪屑丝#39;python' from package 'python-minimal' (main) Command 'python' from package 'python3' (main) zsh: command not found: puthon ➜ fuck python [enter/↑/↓/ctrl+c] Python 3.4.2 (default, Oct 8 2014, 13:08:17) ...

3、当你忘记输入参数时:➜ git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin master ➜ fuck git push --set-upstream origin master [enter/↑/↓/ctrl+c] Counting objects: 9, done. ...

4、当你输入错误的参数时:➜ git brnch git: 'brnch' is not a git command. See 'git --help'. Did you mean this? branch ➜ fuck git branch [enter/↑/↓/ctrl+c] * master

5、当你忘记输入 sudo时:➜ apt-get install vim E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? ➜ fuck sudo apt-get install vim [enter/↑/↓/ctrl+c] [sudo] password for nvbn: Reading package lists... Done ...

6、好了,我想你肯定也想拥有这样的神器,请如此这般……

猜你喜欢