Why do you delete your bash history daily. For "security"?
He deleted his bash history (AFAICT) because it had passwords in it.
if you are entering passwords on the command line such that it lands in your history, then you "delete it at the end of the day", you're not securing anything.
you can turn off history for one command. That's better than deleting bash_history (well, I don't know what an auditor would say about that).
But you should be storing your passwords in secure files, not entering them on the command line.
I rarely nuke my entire history, but frequently prune commands out of it.
As I develop I frequently change parameters/calling conventions on the applications I'm writing. While scanning the history I don't want bad commands to still be there.
Bash history was never meant to be an audit trail and treating manipulating it as some form of security violation is idiotic.
He deleted his bash history (AFAICT) because it had passwords in it.
if you are entering passwords on the command line such that it lands in your history, then you "delete it at the end of the day", you're not securing anything.
you can turn off history for one command. That's better than deleting bash_history (well, I don't know what an auditor would say about that).
But you should be storing your passwords in secure files, not entering them on the command line.