{"id":30,"date":"2008-08-24T20:08:02","date_gmt":"2008-08-25T00:08:02","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=30"},"modified":"2008-08-25T07:39:03","modified_gmt":"2008-08-25T11:39:03","slug":"aliases-for-common-command-line-typos","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/08\/24\/aliases-for-common-command-line-typos\/","title":{"rendered":"Aliases for common command line typos"},"content":{"rendered":"<p><strong>Update (2008-08-25): Lists complete and ready for download.<\/strong><br \/>\n<span style=\"font-weight: bold;\">Update (2008-08-24): The list may take some time to compile, so downloads may not be available until August 25.<\/span><\/p>\n<p>Are you tired from &#8220;<span style=\"font-weight: bold;\">bash: <span style=\"font-style: italic;\">somethinghere<\/span>: command not found<\/span>&#8221; errors that happen when you type something like vf instead of <a rel=\"nofollow\" href=\"http:\/\/www.linfo.org\/cd.html\">cd<\/a>, 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 <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/Typographical_error\">typos<\/a>. You <strong>won&#8217;t<\/strong> be able to use these aliases on Microsoft Windows due to <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/Command_Prompt_(Windows)\">cmd.exe<\/a> not supporting aliases (unlike <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/GNU_Bash\">bash<\/a>). You <strong>can<\/strong>, however, use these with <a rel=\"nofollow\" href=\"http:\/\/www.cygwin.com\/\">Cygwin<\/a> bash.<\/p>\n<p>To use it, download the first download for each command and add to your ~\/.bashrc. If you&#8217;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 <a href=\"\/apps\/flatfiletools\">Compdigitec FlatfileTools<\/a>. If you don&#8217;t know how, <a rel=\"nofollow\" href=\"http:\/\/www.compdigitec.com\/labs\/2008\/08\/13\/parsing-text-files-in-php-with-flatfiletools\/\">read the article on it<\/a>. <span style=\"font-weight: bold;\">Note: both the alias list and the CSV version use UNIX\/Linux encoding (\\n).<\/span><\/p>\n<p><span style=\"font-weight: bold;\">Typographical errors of the <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/Ls\">ls command<\/a>.<\/span> You can download the <a href=\"\/labs\/files\/typo\/ls.alias\" rel=\"nofollow\">list of aliases<\/a> or the <a href=\"\/labs\/files\/ls.csv\" rel=\"nofollow\">CSV version<\/a>.<\/p>\n<ul>\n<li>la<\/li>\n<li>lx<\/li>\n<li>llx<\/li>\n<li>lz<\/li>\n<li>ks<\/li>\n<li>kx<\/li>\n<li>kz<\/li>\n<\/ul>\n<p><span style=\"font-weight: bold;\">Typographical errors of the <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/Cd_(command)\">cd command<\/a>.<\/span> You can download the <a href=\"\/labs\/files\/typo\/cd.alias\" rel=\"nofollow\">list of aliases<\/a> or the <a href=\"\/labs\/files\/typo\/cd.csv\" rel=\"nofollow\">CSV version<\/a>.<\/p>\n<ul>\n<li>vf<\/li>\n<li>cf<\/li>\n<li>vd<\/li>\n<li>ce<\/li>\n<li>xd<\/li>\n<li>xs<\/li>\n<\/ul>\n<p><span style=\"font-weight: bold;\">Typographical errors of the <a rel=\"nofollow\" href=\"http:\/\/www.php.net\/features.commandline\">php command<\/a>.<\/span> Download <a href=\"\/labs\/files\/typo\/php.alias\" rel=\"nofollow\">alias list<\/a> or <a href=\"\/labs\/files\/typo\/php.csv\">CSV version<\/a>.<\/p>\n<ul>\n<li>hph<\/li>\n<li>hhp<\/li>\n<li>pph<\/li>\n<li>pphpp<\/li>\n<li>phph<\/li>\n<\/ul>\n<p><strong>Typographical errors of the <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/wiki\/Make_(software)\">make command<\/a>.<\/strong> Download <a href=\"\/labs\/files\/typo\/make.alias\">alias list<\/a> or <a href=\"\/labs\/files\/typo\/make.csv\">CSV format<\/a>.<\/p>\n<ul>\n<li>amke<\/li>\n<li>kame<\/li>\n<li>maek<\/li>\n<li>emak<\/li>\n<li>mesk<\/li>\n<li>amsk<\/li>\n<li>smak<\/li>\n<li>maek<\/li>\n<\/ul>\n<p><span style=\"font-weight: bold;\">Typographical errors of the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Wget\">wget command<\/a>.<\/span> Download <a href=\"\/labs\/files\/typo\/wget.alias\" rel=\"nofollow\">alias list<\/a> or <a href=\"\/labs\/files\/typo\/wget.csv\">CSV format<\/a>.<\/p>\n<ul>\n<li>wegt<\/li>\n<li>whet<\/li>\n<li>wfget<\/li>\n<li>fget<\/li>\n<li>wger<\/li>\n<li>weget<\/li>\n<\/ul>\n<p>A part 2 article is under way for more commands.<\/p>\n<p>If you found this article interesting or useful, please help Compdigitec spread the word or please leave a comment. Don&#8217;t forget to <a href=\"\/labs\/feed\/\">subscribe<\/a> to Compdigitec Labs for more interesting articles!<\/p>","protected":false},"excerpt":{"rendered":"<p>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 &#8220;bash: somethinghere: command not found&#8221; errors that happen when you type something like vf instead of cd, or cla instead of cls (alias for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,4],"tags":[118,107,116,108,111,862,119,115,112,864,113,114,109,110,117],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}