Skip to main content

Creates an alias for a word when used as the first word of a command. Note that these operations are not permanent, expiring when the current shell session ends.

# To show a list of your current shell aliases:

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

# To remove an aliased command:
unalias word

# To list all aliased words:
alias -p

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

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