next up previous contents
Next: Customizing ls Up: Customizing your shell and Previous: Setting the path: how   Contents

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 proj="cd ~/cs453/prog5"

Then typing the command proj takes you to the directory ~/cs453/prog5. If for some reason you need to remove an alias, just use the unalias command.



Amit Jain 2013-04-22