You are here: >

Linux and Unix hash, hashstat, and unhash commands

hash commandAbout hash, hashstat, and unhash
hash, hashstat, and unhash syntax
hash, hashstat, and unhash examples
Related commands
Linux and Unix main page

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.