snippetbashTip
hash — View cached executable locations. More information: <https://www.gnu.org/software/bash/manual/bash.h
Viewed 0 times
hashcommandexecutableclilocationscachedmoreview
Problem
How to use the
hash command: View cached executable locations. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-hash>.Solution
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:
hashClear the hash table:
hash -rDelete a specific command from the hash table:
hash -d {{command}}Print the full path of a command:
hash -t {{command}}Display help:
hash --helpCode Snippets
View cached command locations for the current shell
hashClear the hash table
hash -rDelete a specific command from the hash table
hash -d {{command}}Print the full path of a command
hash -t {{command}}Display help
hash --helpContext
tldr-pages: common/hash
Revisions (0)
No revisions yet.