Open In App

hash command in Linux with examples

hash command in Linux system is the built-in command of bash which is used to maintain a hash table of recently executed programs. It remembers and shows the program locations. It will give the full pathname of each command name.

Syntax:



hash [-lr] [-p pathname] [-dt] [name ...]

Options:

Example 1: hash command without any option



hash

Example 2: hash command with -r option

Example 3: hash command with -l command

hash -l

Article Tags :