They are meant to Quick Executing Commands by simply Calling a synthetic Label or Name.
So every time you “call” the Alias Name on a Terminal window your action will Correspond to the Sequence of Commands Linked to the Label.
- The User Aliases are Defined inside the ~/.bashrc, ~/.profile, ~/.bashrc, ~/.shrc, ~/.cshrc.
The System Aliases instead are Define into the /etc/bashrc, /etc/profile, /etc/bash.bashrc Files.
Generally the definition of an Alias can be Resumed with:
$ alias ALIASNAME="COMMAND'S SEQUENCE"
And it execution with:
will Correspond to execute:
$ COMMAND'S SEQUENCE
Howto Install Firefox Nightly on Linux:
$ alias htdocs="cd /opt/local/apache2/htdocs"
So that executing in Terminal our custom “htdocs” command will Correspond to:
$ cd /opt/local/apache2/htdocs
$ alias mate="/Users/daveall/bin/mate"
So our defined command “mate” will be a shortcut than will bring to open the Textmate application.
How-to Set Terminal Command to Run on System Start-Up: