Temporary Disabling Bash History
Let’s assume that you want execute some command that you don’t want in your history (e.g. commands with passwords), but you don’t want to clear your entire history because of these.
all you need to do is to run the following command:
unset HISTFILE
or
HISTFILE=/dev/null
this will disable history for your current session.
No Comments Yet.