Linux/Unix – Command Alias
Use alias to assign an alias, a name that represents another command or commands. Aliases are useful for creating short command names for lengthy and frequently used commands.
To make an alias of bye for the exit command, type:
$ alias bye=”exit”
This command makes `bye’ an alias for `exit’ in the current shell, so typing bye would then run exit. You can also include options and arguments in an alias.
To make an alias of `ap’ for the command apropos shell bash shells, type:
$ alias ap=”apropos shell bash shells”
This command makes `ap’ an alias for `apropos shell bash shells’ in the current shell, so typing ap would run apropos shell bash shells.