Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Hello71
4y ago
0 comments
Save
Share
unless you're exclusively running shell built-ins, doesn't running any command at all potentially cause a disk scan
0 comments
2 comments · 1 top-level
top
newest
oldest
nyuszika7h
4y ago
· 1 in thread
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