Creating Linux Command Shell (Bash) Aliases

Alias means a second name for an existing thing. Aliases for command means a shorter command for an actual lengthy command. This will help in remembering it. For example, the command to untar/unzip a compressed file is:

tar xzvf [filename]

This is ofcourse not easy to remember and this is where aliases comes into play.

In the home directory of every user, there is a hidden file named .bashrc which can be used to define aliases for that user.

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