1

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

enter image description here

1 Answers1

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, or man bash and search for hash under builtin commands there.