Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Hello71
· 5y ago · 0 comments
unless you're exclusively running shell built-ins, doesn't running any command at all potentially cause a disk scan
Comments
[–]
lunaynx
5y ago
Usually the shell creates a cache of commands on start, which can be refreshed with `hash -r`.
[–]
yissp
5y 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