Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
Hello71
4y ago
0 comments
Share
unless you're exclusively running shell built-ins, doesn't running any command at all potentially cause a disk scan
undefined | Better HN
0 comments
default
newest
oldest
nyuszika7h
4y ago
Usually the shell creates a cache of commands on start, which can be refreshed with `hash -r`.
yissp
4y ago
As far as I can tell the hash table is initially empty after you first start the shell. At least, that's the case for bash.
$ hash hash: hash table empty
j
/
k
navigate · click thread line to collapse