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
Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts
Subscribe to:
Posts (Atom)