Creating Terminal shortcuts to applications, files and directory.
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.
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.