Skip to main content

Creates aliases, words that are replaced by a command string. Aliases expire with the current shell session unless defined in the shell's configuration file, e.g. ~/.bashrc.

# To list all aliases:
alias

# To create a generic alias:
alias word="command"

# To view the command associated to a given alias:
alias <word>

# To remove an aliased command:
unalias <word>

# To turn 'rm' into an interactive command:
alias rm="rm --interactive"

# To create 'la' as a shortcut for 'ls --all':
alias la="ls --all"