Compdigitec Labs

« | Home | »

Aliases for common command line typos

By admin | August 24, 2008

Update (2008-08-25): Lists complete and ready for download.
Update (2008-08-24): The list may take some time to compile, so downloads may not be available until August 25.

Are you tired from “bash: somethinghere: command not found” errors that happen when you type something like vf instead of cd, or cla instead of cls (alias for clear)? Well, now you can prevent it, because we have composed a list of most common command line typos. You won’t be able to use these aliases on Microsoft Windows due to cmd.exe not supporting aliases (unlike bash). You can, however, use these with Cygwin bash.

To use it, download the first download for each command and add to your ~/.bashrc. If you’re feeling a bit adventurous, you can download the CSV version (line 1 = command name, followed by one word for each typo) and parse it with Compdigitec FlatfileTools. If you don’t know how, read the article on it. Note: both the alias list and the CSV version use UNIX/Linux encoding (\n).

Typographical errors of the ls command. You can download the list of aliases or the CSV version.

Typographical errors of the cd command. You can download the list of aliases or the CSV version.

Typographical errors of the php command. Download alias list or CSV version.

Typographical errors of the make command. Download alias list or CSV format.

Typographical errors of the wget command. Download alias list or CSV format.

A part 2 article is under way for more commands.

If you found this article interesting or useful, please help Compdigitec spread the word or please leave a comment. Don’t forget to subscribe to Compdigitec Labs for more interesting articles!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux, Windows | No Comments »

Comments