LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

unalias

Remove shell command aliases

TLDR

Remove a specific alias
$ unalias [name]
copy
Remove all aliases
$ unalias -a
copy
Remove multiple aliases
$ unalias [name1] [name2]
copy

SYNOPSIS

unalias [-a] name ...

DESCRIPTION

unalias is a shell builtin that removes previously defined command aliases. It can remove specific aliases by name or all aliases at once with the -a flag.The removal only affects the current shell session. Aliases defined in shell startup files like ~/.bashrc or ~/.zshrc will be restored when a new shell is started. This makes unalias useful for temporarily bypassing an alias to test the underlying command's behavior or for debugging shell configuration issues.Returns 0 on success, or a value greater than 0 if a specified alias name does not exist.

PARAMETERS

-a

Remove all alias definitions from the current shell execution environment.
name
One or more alias names to remove.

CAVEATS

Shell builtin. Not persistent across sessions. Only affects the current shell execution environment.

HISTORY

unalias is a POSIX-standard shell builtin for removing command aliases defined with the alias command.

SEE ALSO

alias(1), type(1), which(1), bash(1), hash(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid