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.
[1] 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 returns the following exit values: Print the hash table.
Searches for command cat in the path specified by PATH environmental variable; if found, adds it to the hash.