Shell

unalias

Remove alias definitions from the current shell session.

Synopsis

syntax
unalias [-a] NAME...

Examples

Remove the ll alias
unalias ll
Remove all aliases
unalias -a
Restore original rm behavior
unalias rm

Common options

FlagDescription
-aRemove all alias definitions

About unalias

The `unalias` command remove alias definitions from the current shell session. Shell commands configure your interactive environment — variables, aliases, history, and shell options.

The shell is your primary interface with Linux, and customizing it improves productivity. These commands work across bash, zsh, and other POSIX-compatible shells with minor differences.

The command accepts 1 commonly used flag shown above, though the full set of options is available in the man page (`man unalias`). The 3 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Shell Commands

Other commands in the Shell category

Related tools