alias in unix

alias is probably the best option in order to save key strokes.

to make an alias
suppose I want to open htdocs folder which is in /Application/MAMP/htdocs/ , but for that i have to type few lines in terminal. But by making an alias it can be done with only one small word. To do so, just type this line in the terminal.
alias ht='open /Applications/MAMP/htdocs/'

to see the alias
just type
alias

to remove all aliases
unalias -a

to remove a specific one
unalias [name of the alias]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s