I realized that you can use windows dir
in ubuntu terminal, when I tried to dig deeper into its implementation, type
command tells me it is hashed, I read some doc but it didn't explain what "hashed" means
Asked
Active
Viewed 1,277 times
1

watashiSHUN
- 111
1 Answers
2
From https://unix.stackexchange.com/a/105878 by user frostschutz on Unix Stackexchange:
It's a performance thing; instead of searching the whole path for the binary every time it is called, it's put into a hash table for quicker lookup. So any binary that's already in this hash table, is hashed. If you move binaries around when they're already hashed, it will still try to call them in their old location.
See also
help hash
, orman bash
and search forhash
under builtin commands there.

Justin Eiler
- 121
type which
say thatwhich is hashed
? – phuclv Nov 24 '16 at 10:15