hash is a command on Unix and Unix-like operating systems that prints the location information for the commands found. The hash command has also been ported to the IBM i operating system.
We don't have any images related to hash (Unix) yet.
You can add one yourself here.
We don't have any YouTube videos related to hash (Unix) yet.
You can add one yourself here.
We don't have any PDF documents related to hash (Unix) yet.
You can add one yourself here.
We don't have any Books related to hash (Unix) yet.
You can add one yourself here.
We don't have any archived web articles related to hash (Unix) yet.
Syntax
$ hash [name]Description
When 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. C shell implements this command in a different way.
Options
The following options are supported.
name Searches the PATH environmental variable for the name givenExit Status
This command returns the following exit values:
0 Successful completion 1 An Error occurredExamples
$ hashPrint the hash table.
$ hash catSearches for command cat in the path specified by PATH environmental variable; if found, adds it to the hash.
See also
External links
The Wikibook Guide to Unix has a page on the topic of: Commands- hash – Shell and Utilities Reference, The Single UNIX Specification, Version 4 from The Open Group
- hash(1) – Solaris 11.4 User Commands Reference Manual