mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-02 00:35:23 +02:00
21 lines
362 B
Markdown
21 lines
362 B
Markdown
![]() |
# 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}}`
|