*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: hash | Section: 1 | Source: Digital UNIX | File: hash.1.gz
hash(1) General Commands Manual hash(1) NAME hash - Remembers or reports utility locations SYNOPSIS hash [utility] hash -r STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: hash: XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. OPTIONS Forgets all previously remembered utility locations. OPERANDS The name of a utility to be searched for and added to the list of re- membered locations. If utility contains one or more slashes, the re- sults are unspecified. DESCRIPTION The hash utility affects the way the current shell environment remem- bers the locations of utilities found. Depending on the arguments spec- ified, it adds utility locations to its list of remembered locations or it purges the contents of the list. When no arguments are specified, hash reports on the contents of the list. This list consists of those utilities named in previous hash in- vocations that have been invoked, and those invoked and found through the normal command search process. This list includes the path name of each utility in the list of remembered locations for the current shell environment. NOTES The use of hash with utility names is unnecessary for most applica- tions, but may provide a performance improvement. The effects of hash -r can also be achieved by resetting the value of PATH. RESTRICTIONS If hash is called in a separate utility execution environment, such as one of the following it will not affect the command search process of the caller's environment. nohup hash -r find . -type f | xargs hash Utilities provided as built-ins to the shell are not reported by hash. EXIT STATUS The following exit values are returned: Successful completion. An er- ror occurred. ENVIRONMENT VARIABLES The following environment variables affect the execution of hash: Pro- vides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contains an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi- byte characters in arguments). Determines the locale that should be used to affect the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. Determines the location of name. SEE ALSO Commands: command(1), type(1) Standards: standards(5) hash(1)

Navigation Options