[kanchilug] 1D1C - hash

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Wed, 24 Aug 2022 06:00:00 +0530

hash - built-in command of bash which is used to maintain a hash table of
recently executed programs

To display information about the hash table
$ hash
hits command
2     /usr/bin/man
2     /usr/bin/ls
1     /usr/bin/cat

To forget the remembered location of each name
$ hash -r

To display in a format that may be reused as input
$ hash -l

To display the remembered location of each NAME
$ hash -t cat ls
cat /usr/bin/cat
ls /usr/bin/ls



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - hash - Dhanasekar