hash
Determine and remember the full pathname of each command.[1]
Documentation
- hash [EN] @ GNU Bash Reference Manual
- bash -c 'help hash'
- man 1 'bash' [EN]
Syntax
hash [PARAMETER ...] [NAME]
Parameters
- -r
- Forget all remembered locations.
Examples
- Display information about remembered commands
hash
Output:
hits command
2 /bin/bash
1 /bin/touch
1 /bin/ps
- Forget all remembered locations
hash -r
References
- ↑ man 1 'bash'