How to add alias

Post date: Jun 29, 2014 5:25:09 AM

If your machine is mac go to .bash_profile in your home directory:

vi ~/.bash_profile

You might want to add, for example, the following aliases to the .bash_profile:

alias sshd1006="ssh disco-1006.abc.mycompany.com"
alias cdminefraud="cd /mine/fraud/kittipat"
alias lha="ls -lha"

further readings:

http://www.maclife.com/article/columns/terminal_101_creating_aliases_commands