2025-03-14 21:59:59 -06:00
|
|
|
# hash
|
|
|
|
|
|
|
|
|
|
> View cached executable locations.
|
|
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-hash>.
|
|
|
|
|
|
|
|
|
|
- View cached command locations for the current shell:
|
|
|
|
|
|
|
|
|
|
`hash`
|
|
|
|
|
|
|
|
|
|
- Clear the hash table:
|
|
|
|
|
|
|
|
|
|
`hash -r`
|
|
|
|
|
|
|
|
|
|
- Delete a specific command from the hash table:
|
|
|
|
|
|
|
|
|
|
`hash -d {{command}}`
|
|
|
|
|
|
|
|
|
|
- Print the full path of `command`:
|
|
|
|
|
|
|
|
|
|
`hash -t {{command}}`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`hash --help`
|