Linux command buffer Hash Table

Cache Hash Table

System Initial hash table is empty, when the external command, default look for that command from the PATH, find the path of this command will be recorded in the hash table, when the command again, the shell is first interpreter Check hash table, there is the execution of, if not, will find the path to pATH, use the cache hash table can be greatly improved call rate command

hash command common usage

  • hash hash displays cache
  • -l display buffer hash hash, may be used as an input
  • hash -p path name will command the full path from the path alias name
  • hash -t name Print name of the cache path
  • Clear name cache hash -d name
  • Clear cache hash -r

Guess you like

Origin www.cnblogs.com/bpzblog/p/12617147.html