Powered by InterCreatives | Site Map
Search:
NewSourceMedia Popular Tutorials: PHP Javascripts Web Hosting
SoftwareTutorials
CATEGORIES
Job Listings
 
Home / Mac OS X / Terminal Commands

Terminal Alias Shortcuts

Published by: Alexander Mclean III


Directories:
You can create your own Terminal shortcuts by typing the word "alias", then your short cut name, followed by a Terminal command inside of single quotes. Here is an example of a directory alias to the desktop. My alias name will be "dt" (short for desktop) and my command will be "cd Desktop" ("cd" is short for "change directory to").

alias dt 'cd Desktop'

Now all I have to do to change my directory to the Desktop is type in "dt" and hit return. After that I will type "ls" and hit return to show a list of items in the desktop directory.

Applications:
You can create your own Terminal shortcuts to open applications. Here is an example to create an alias to open the TextEdit.app application in side of the Applications folder. My alias name will be "tx":

alias tx 'open /Applications/TextEdit.app/'

Now all I'll need to do to open my TextEdit.app is to type the alias command "tx" and press return to launch TextEdit.app.
Next Mac OS X Page:
1  [2]  3  4 





Hosting by iPowerWeb.com - 50 Gb for $7.95