hash (Unix)
Template:Short description Template:Refimprove
Page Module:Infobox/styles.css has no content.
| hash | |
|---|---|
| [[Programmer|DeveloperTemplate:Pluralize from text]] | Various open-source and commercial developers |
| Engine | Page Template:Plainlist/styles.css has no content.Template:EditAtWikidata |
| Operating system | Unix, Unix-like, IBM i |
| Type | Command |
| Website | Script error: No such module "WikidataIB". |
| Repository | Page Template:Plainlist/styles.css has no content.
|
Script error: No such module "Check for conflicting parameters".
hash is a command on Unix and Unix-like operating systems that prints the location information for the commands found. The Page Template:Kbd/styles.css has no content.hash command has also been ported to the IBM i operating system.[1]
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 given
Exit Status
This command returns the following exit values:
- 0
- Successful completion
- 1
- An Error occurred
Examples
$ hash
Print the hash table.
$ hash cat
Searches for command cat in the path specified by PATH environmental variable; if found, adds it to the hash.
See also
References
Page Template:Reflist/styles.css has no content.
- ^ Page Module:Citation/CS1/styles.css has no content.IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). IBM. Retrieved 2020-09-05.
External links
Page Module:Side box/styles.css has no content.Page Template:Sister project/styles.css has no content.
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.