Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (g - j) hash(1)
NAME
hash - Affects memory of where utilities are located
SYNOPSIS
hash [utility ...] -r
FLAGS
-r Causes the hash command to forget all locations of utilities and commands.
DESCRIPTION
The hash command affects the way the current shell environment remembers the locations of
utilities.
When the name of a command or utility is specied for utility, the hash command adds the loca-
tion of that command or utility to its list of remembered locations.
When the -r ag is used, hash forgets all previously remembered locations of utilities and com-
mands.
When utility is not specied and the -r ag is not used, hash reports the contents of its list of
remembered locations.
EXAMPLES
1. The following command lists the commands whose locations the hash command
currently remembers:
hash
NOTES
The hash command is a shell built-in command. It differs from the regular commands in that it
does not open a new shell process when it executes.
A general discussion of shell built-in commands and a list of the OSS shell built-in commands
are in the reference page for sh(1).
RELATED INFORMATION
Commands: sh(1).
527188-003 Hewlett-Packard Company 441