There are multiple methods of preventing a user's command history from being flushed to their .bash_history file, including use of the following commands:set +o history
and set -o history
to start logging again;unset HISTFILE
being added to a user's .bash_rc file; andln -s /dev/null ~/.bash_history
to write commands to /dev/null
instead.