Unix / Linux Commands: alias

By: Dusty Arlia
Published on Saturday, August 31, 2013, 09:38 PM
Last Updated on Friday, July 03, 2015 at 4:14 PM
Total Updates: 4

The alias command provides a list of commands that use aliases. Aliases are short names given to frequently used commands or long confusing commands to simplify the things for the terminal user. To see a list of alias commands, just type alias at the terminal window like this:


Here is the syntax if you want to create an alias command (from the bash shell):

alias [-p] [name="value"]

name is the name of the new alias you are creating and value is the command(s) which it initiates. The alias name and the replacement text can contain any valid shell input except for the equals sign ( = ).