An alias is basically a shortcut that takes the place of typing a long command sequence.
Aliases can be implemented in multiple ways, either by using functions or by using the
An alias can be implemented as follows:
$ alias new_command='command sequence'
Giving a shortcut to the install command,
apt-get install, can be done as follows:
$ alias install='sudo apt-get install'
Therefore, we can use
install pidgin instead of
sudo apt-get install pidgin.
alias command is temporary; aliasing exists until we close the current terminal only. In order to keep these shortcuts permanent, add this statement to the
~/.bashrc file. Commands in
~/.bashrc are always executed when a new shell process ...