{"id":107,"date":"2006-11-23T15:51:02","date_gmt":"2006-11-23T14:51:02","guid":{"rendered":"http:\/\/reflection-design.dk\/?p=107"},"modified":"2006-11-23T15:51:02","modified_gmt":"2006-11-23T14:51:02","slug":"power-up-the-terminal-with-aliases","status":"publish","type":"post","link":"https:\/\/reflection-design.dk\/?p=107","title":{"rendered":"Power up the terminal with Aliases !"},"content":{"rendered":"<p>A little quick trick on how to add some nifty aliases for your terminal. What is an alias exactly. Well it&#8217;s another name for a specific command. A common alias e.g. could be to be able to type &#8216;dir&#8217; (windows\/DOS style) to list the directory content instead of &#8216;ls&#8217;. Then you make an alias saying that the &#8216;dir&#8217; command should be the same as typing the &#8216;ls&#8217; command.<\/p>\n<p>Now Ubuntu Linux comes with some of the common aliases already in your .bashrc file, but pr. default they are commented out. We simply need to uncomment them and also add our own extra ones if we want.<\/p>\n<blockquote><p>gedit .bashrc<\/p><\/blockquote>\n<p>Towards the bottom of the tile you should see a line like this:<\/p>\n<blockquote><p># some more ls aliases<\/p><\/blockquote>\n<p>Uncomment the section below this line, by removing the &#8216;#&#8217; at the beginning of each line. You should now be able to use these aliases. If you wish to add extra aliases just follow the same syntax as the ones already there and you should be able to quickly add your own.<\/p>\n<p>Personally i like to add an alias for the &#8216;cd ..&#8217; command which allows me to also use &#8216;cd..&#8217; without the space between &#8216;cd&#8217; and &#8216;..&#8217;. An alias like that would like like this:<\/p>\n<blockquote><p>alias cd..=&#8217;cd ..&#8217;<\/p><\/blockquote>\n<p>There you have it.. how to add your own aliases to the terminal. If you don&#8217;t want to close the terminal for them to take effect, simply use the following command from your home directory to reload the .bashrc file.<\/p>\n<blockquote><p>source .bashrc<\/p><\/blockquote>\n<p>Enjoy the wonderful world of aliases \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A little quick trick on how to add some nifty aliases for your terminal. What is an alias exactly. Well it&#8217;s another name for a specific command. A common alias e.g. could be to be able to type &#8216;dir&#8217; (windows\/DOS style) to list the directory content instead of &#8216;ls&#8217;. Then you make an alias saying [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[93],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-articles","category-linuxunix","tag-ubuntu-linux"],"_links":{"self":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":0,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reflection-design.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}