Linux rehash command

Updated: 04/26/2017 by Computer Hope

About rehash

On Solaris, the rehash command re-computes the internal hash table of the contents of directories listed in the path environmental variable to account for new commands added.

rehash syntax


rehash examples


Re-computes the internal hash table.

csh — The C shell command interpreter.
hashstat — Evaluate the effectiveness of internal hash tables under Solaris.
ksh — The Korn shell command interpreter.
sh — The Bourne shell command interpreter.
unhash — Access internal hash tables under Solaris.