How to disable bash shell history in Linux
To disable bash shell history in Linux, you can use the following steps:
- Open the bash shell profile file:
$ nano ~/.bash_profile- Add the following line to the end of the file:
unset HISTFILE- Save and close the file.
- Log out and log back in, or open a new terminal window to apply the changes.
