Reshared post from +Rajesh Kalapura
~~~~~~~~~~~~~Adding Terminal alises to Ubuntu Linux~~~~~~~~~~~~~~
Alias mainly used for abbreviating a system command, or for adding default arguments to a regularly used command.
Create a file named '.bash_aliases' in home folder:~$
touch ~/.bash_aliases
Open file with gedit:~$
gedit ~/.bash_aliases
Add your aliases in 'bash_aliases' file and save. See some example aliases:
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
alias upgradef='sudo apt-get update; sudo apt-get upgrade'
alias install='sudo apt-get install'
alias remove='sudo apt-get remove'
alias autoremove='sudo apt-get autoremove'
alias autoclean='sudo apt-get autoclean'
alias search='apt-cache search'After saving the above file restart the terminal :~$
bash
See your alises with :~$
alias
Test your alias command with any aliases like ~$
upgradef
Enjoy……….