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
hashbuiltin or theBASH_CMDSassociative array. – Mar 26 '20 at 00:35BASH_CMDS[ls]=/bin/yes. Then usels.hash -rto let bash forget about it. – Mar 26 '20 at 00:55lsdisappears 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:16lsbecause 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