HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hash — View cached executable locations. More information: <https://www.gnu.org/software/bash/manual/bash.h

Submitted by: @import:tldr-pages··
0
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:
hash


Clear the hash table:
hash -r


Delete a specific command from the hash table:
hash -d {{command}}


Print the full path of a command:
hash -t {{command}}


Display help:
hash --help

Code Snippets

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 a command

hash -t {{command}}

Display help

hash --help

Context

tldr-pages: common/hash

Revisions (0)

No revisions yet.