mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
487 B
Plaintext
30 lines
487 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|
|
|
|
- Display help:
|
|
|
|
`hash --help`
|