shell alias

A short name the shell swaps in for the start of a command line, defined with alias name='command'.

In more detail

Only the first word of a line is replaced, and only in interactive shells, so aliases do nothing in scripts; use a function there. alias with no arguments lists them and unalias removes one. Keep the ones you want in your .bashrc file.

Examples

alias ll='ls -la'
alias cp='cp -i'

Related terms

Taught in

References