IDG Contributor Network: The Linux command that you should never say out loud
If, when working on your Linux servers, you occasionally mistype a command and then curse, you might feel right at home with a very oddly named Linux command. It might even reduce the frustration you feel by helping you to correct your typing mistakes. The tool is called, well, thef?ck -- but with the ? replaced by the obvious letter. And, in spite of its rather off-color name, a lot of people are very excited to have a little help getting past their command line mistakes.
Installing the command
The commands shown below should get the command installed on your system. The pip command helps install Python packages.
$ sudo yum install pip $ which pip $ PATH=$PATH:/usr/local/bin $ wget -O - https://raw.githubusercontent.com/nvbn/thefuck/master/install.sh | sh - && $0 $ sudo -H pip install thefuck
And, to ensure that I behave myself on the command line (who knows who might end up reading my history file), I created an alias for the f?ck command.
To read this article in full or to leave a comment, please click here