Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
hash(1) OSS Shell and Utilities Reference Manual
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 specified for utility, the hash command adds the loca-
tion of that command or utility to its list of remembered locations.
When the -r flag is used, hash forgets all previously remembered locations of utilities and com-
mands.
When utility is not specified and the -r flag 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).
4−44 Hewlett-Packard Company 527188-007