Alias on Mac OSX and Linux

March 26, 2011 | By Regaz | Filed in: Uncategorized.

The concept and use of aliases serve to facilitate the command’s execution Terminal.

If you need to quick execute a command you can resume and link it to a label or name.

So every time you will “call” that name of a Terminal window you action will correspond to the sequence of commands linked by you to that label.

Generally the definition of an alias can be resumed with:

$ alias ALIASNAME="COMMAND'S SEQUENCE"

And it execution with:

$ ALIASNAME

will correspond to execute:

$ COMMAND'S SEQUENCE


Bloogger Blogger, Google Blogger, Google Google

Feel Better on Debian Linux

Examples:

1)

$ alias htdocs="cd /opt/local/apache2/htdocs"

So than executing in Terminal our custom “htdocs” command will correspond to:

$ cd /opt/local/apache2/htdocs

2)

$ alias mate="/Users/daveall/bin/mate"

So our defined command “mate” will be a shortcut than will bring to open the Textmate application.


Tags: , , , , , ,

QuickChic Theme • Powered by WordPress