How to disable bash history in Ubuntu 16.04

Append either line below to the end of your .bashrc file, start a new bash terminal and history should now be turned off.

shopt -u -o history

or

set +o history

Don’t forget clear out the old history file too.

# history -c;