alias command
Create short names for long commands.
- Shell & scheduling
- Package shell builtin
- 4 options · 5 examples
Syntax
alias name='command'unalias name
Provided by the shell builtin package. Run man alias for the full manual.
Common options
| Option | What it does |
|---|---|
(no args) | List all aliases |
-p | Print aliases in reusable form |
unalias NAME | Remove an alias |
\name | Run the original command, skipping the alias |
Examples
List aliases
aliasCreate an alias
alias ll='ls -alF'Alias with options
alias update='sudo apt update && sudo apt upgrade -y'Make it permanent
echo "alias ll='ls -alF'" >> ~/.bashrc && source ~/.bashrcRemove an alias
unalias ll
No example matches. Check the options table or search the guides.
alias guides
- How to Create Shortcut Commands using Alias in Linux Linux Commands · Updated Apr 2025
