|
Syntaxksh: hash [name] DescriptionWhen the user gives a command, the shell searches for the command in the path specified in the PATH environmental variable and stores the location in the hash. This command can be used to search for the command given. The command is built into the shell. csh shell implements this command in the different way. OptionsThe following options are supported name Searches the PATH environmental variable for the name given Exit StatusThis command returns the following exit values: 0 Successful completion 1 An Error occurred Examples1. hash Print the hash table. 2. hash cat Searches for command cat in the path specified by PATH environmental variable; if found, adds it to the hash. See alsoThe bash command, csh command, find command, ksh command, sh command. |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net