Shell and Environment

alias

Creates shell command shortcuts.

alias defines short shell substitutions. Aliases are useful for convenience but can hide command behavior.

Syntax
alias name='command'

Arguments explained

  • name is the alias name.
  • command is the replacement text.
  • No arguments lists current aliases.

Common examples

Create a safer rm prompt
alias rm='rm -i'

Makes rm ask before deletion in the current shell.

List aliases
alias

Shows aliases defined in the shell.

alias Command
FieldDetails
Commandalias
CategoryShell and Environment
Primary useCreates shell command shortcuts.
Syntaxalias name='command'