
It’s probably not a good idea to completely turn off bash history, one of the reasons bash history exists as a reference to mistakes or useful past commands you can’t recall. But there are also legitimate reasons who don’t want to log some bash commands for security or privacy reasons. Here are 3 ways you can temporarily turn off bash history logging: