Handy Bash Shell Aliases

An alias is a shortcut to commands. The alias command allows user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display list of all defined aliases. You can add user defined aliases to ~/.bashrc file.

To create the alias use the following syntax:

alias name=value
alias name='command'

## Colorize the ls output ##
alias ls='ls --color=auto'

## Use a long listing format ##
alias ll='ls -la'

To remove an alias, the syntax is as follows:

 unalias aliasname