You can put such aliases in the ~ / .bash_aliases file.
This file is loaded by ~ / .bashrc. On Ubuntu 10.04, the following lines should be uncommented to allow the use of ~ / .bash_aliases. On Ubuntu 11.04 and later, it is already activated:
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
also
You can add the function below to your .bashrc file.
Permalias () function
{ alias "$*"; echo alias "$*" >> ~/.bash_aliases }
Then open a new terminal or run the source ~ / .bashrc in the current terminal. Now you can create persistent aliases using the permalias command, for example permalias cls = clear.
source share