hash

From RaySoft

Determine and remember the full pathname of each command.[1]

Documentation

Syntax

hash [PARAMETER ...] [NAME]

Parameters

-r
Forget all remembered locations.

Examples

Display information about remembered commands
hash

Output:

hits	command
   2	/bin/bash
   1	/bin/touch
   1	/bin/ps
Forget all remembered locations
hash -r

References

  1. man 1 'bash'