The "command hashing system" should store the path of the shell commands somewhere, right ? Is it a database or what? I am wondering where that is. Also, Is it encrypted ?
Do we have a way of knowing where and how the hashing system stores those commands?
I appreciate your suggestions. Thanks
hash
builtin or theBASH_CMDS
associative array. – Mar 26 '20 at 00:35BASH_CMDS[ls]=/bin/yes
. Then usels
.hash -r
to let bash forget about it. – Mar 26 '20 at 00:55ls
disappears from the hash table. Did it work for you? – David Mar 26 '20 at 01:06PATH
, the hash table will be cleared. That's standard behaviour. – Mar 26 '20 at 01:16ls
because it was aliased and its arguments were used for the substitute command. I tried some other command, and it worked. (I am using Arch. Not all distros show the same behaviour tho) – David Mar 26 '20 at 01:19