Forrest logo
back to the unalias tool

alias:tldr:2b0ae

alias: Remove an aliased command.
$ unalias ${word}
try on your machine

The command unalias ${word} is used to remove an alias associated with the specified ${word}.

Aliases are shortcuts or alternate names for commands in a shell environment. They allow users to create their own customized commands or abbreviations for frequently used commands.

In the context of this command, ${word} represents a variable that holds the name of the alias that needs to be removed. By using the unalias command followed by the variable ${word}, the specified alias is unset, effectively removing it from the list of aliases.

For example, if you have an alias named ll set to execute the ls -l command, running unalias ll will remove that alias, and from that point onwards, ll will no longer shortcut to ls -l.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the unalias tool