unhash [ -adfms ] name ...

Remove the element named name from an internal hash table. The default is remove elements from the command hash table. The -a option causes unhash to remove regular or global aliases.

Option Description


Removes regular or global aliases.


Removes named directories.


Removes shell functions.


The arguments are taken as patterns (should be quoted) and all elements of the corresponding hash table with matching names will be removed.


Removes suffix aliases.