Linux and Unix hash, hashstat and unhash

Quick links

About hash, hashstat and unhash
Syntax
Examples
Related commands
Linux and Unix main page

About hash, hashstat and unhash

Remove internal hash table. The C shell will stop using hashed values and will spend time searching the path directories to locate a command.

Syntax

hash [-r] [name]

unhash
hashstat

-rRemoves all current tracked aliases.
nameLocation of hash.

Examples

unhash

Remove internal hash table

hashshat

Display the hash statistics. Below is an example of what may be displayed.

66 hits, 33 misses, 66%

Related commands

csh
ksh
rehash
sh