Hiding Your Tracks: Bash History

ignorespace is not a default everywhere.
shred may, depending on your filesystem, not actually get rid of a file’s contents. Better add a warning for that one.
I like export HISTFILE=$HOME/tmp/bash_history
when playing around with random commands that I don’t want in my permanent history but still want to be able to use ctrl-r or pgup. $HOME/tmp
is a tmpfs in this case. Not really for security but for convenience, though.
Thanks to the Courtesy of :
https://www.reddit.com/r/netsec/comments/erxajy/hiding_your_tracks_bash_history/