Aliases

Aliases are defined with alias <rhs>=<cmd> so that <cmd> is substituted for<rhs> - not unlike a macro substitution. Aliases are usually placed in .bashrc file in your home directory. Some examples:

alias rm='rm -i'
alias vi='gvim'
alias ls='ls -F --color=auto'
alias p5='cd ~/cs121/prog5'

Then typing the command p5 takes you to the directory ~/cs121/prog5. If for some reason you need to remove an alias temporarily in the login session, then use the unalias command. For example: unalias vi.