In bash: just type `help hash` and you will get a help about the built-in command `hash`.
> Determine and remember the full pathname of each command NAME.
What that means is that after finding the location of a command the first time (or when hash is invoked), its location is remembered (hashed).