Wednesday, March 5, 2008

Aliases

Have you ever had to write a long string of characters in the terminal, and let out a huge sigh of relief once you have finished, thinking "Wow, I am so glad I never have to do that again." Well, if you ever do, thank god for Aliases. An aliases, in Linux, is a shortcut for a longer string of commands. For example, you can make an alias for "sudo apt-get install" and just have to type "install" in the terminal to get the same effect. Very useful if you ever have to type in anything more than once.

So how do you add or change aliases? Open up a terminal.

Type: $ nano ~./bash_aliases

And then you are in. There should already be one there, and you can follow the same format to make and edit your own aliases. If you ever want to see what aliases you have just type in:

$ alias

2 comments:

Anonymous said...

Nice fill someone in on and this enter helped me alot in my college assignement. Thanks you on your information.

Anonymous said...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.