On Unix-like operating systems, the unalias command is a shell command which removes each name from the list of defined aliases.
This page covers the bash built-in version of unalias.
Syntax
unalias [-a] name [name …]
Arguments
Examples
If you did the example on our alias page, to remove that example which was called “home” you would type the following command.
- Syntax
- Examples
- Related commands
- Linux commands help
unalias home
Related commands
alias — Create an alternate name for a command.