Linux hash, hashstat, and unhash commands

Updated: 04/26/2017 by Computer Hope

About hash, hashstat, and unhash

On SunOS, the hash, hashstat, and unhash commands access the hash table. If the table is unhashed, the C shell will stop using hashed values and will spend time searching the path directories to locate a command.

hash, hashstat, and unhash syntax

hash [-r] [name]
unhash
hashstat
-r Removes all current tracked aliases.
name Location of hash.

hash, hashstat, and unhash examples

unhash

Remove internal hash table.

hashshat

Display the hash statistics. Output will resemble the following:

66 hits, 33 misses, 66%

csh — The C shell command interpreter.
ksh — The Korn shell command interpreter.
rehash — Recompute internal hash tables under Solaris.
sh — The Bourne shell command interpreter.