Right now, I'm aware that for all commands typed into the console, the Ubuntu system logs it somewhere.
How can I disable logging of unix commands for all users?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityRight now, I'm aware that for all commands typed into the console, the Ubuntu system logs it somewhere.
How can I disable logging of unix commands for all users?
Try putting this in your /etc/profile
:
unset HISTFILE
This only works for shells which evaluate the systemwide profile like bash and sh, see bash manual. Not sure about other shells. Also, users need to logout and login again to make it work.
You can also disable history using command
set +o history
This would be per shell. To make it permanent put it in /etc/profile
You can easely erase your current user command history using
history -c
useful if you typed a password as a commnad parameter.