From LXF Wiki



A shell command that allows you to define your own custom commands or give alternative names to existing commands. New commands are made by combining one or more existing commands. A list of current alias's can be viewed by typing alias in the command line. New alias' only have a lifetime as long as your current session, so adding them to a startup script or the .bashrc file is a must for your favourites.


example 1 - giving a command an alternative name

alias makedirectory='mkdir'

This would allow you to create new directories with the command makedirectory (if you happen to enjoy typing longwords).

example 2 - creating a single command by combining 2 existing commands

alias psa='ps aux||more'

This command combines the checking of currently running processes with the more command which allows you to control the speed at which it all appears on screen.

Flags and Options