Disabling Shell History Logging

It is just a simple setting I need everytime installing a new unix machine. May be it’s paranoid but in my opinion the file-based history logging should be disabled for security reasons – at least in the root account. You can easily do that by open the .bashrc file in the particular home directory and add the following line(s):

export HISTFILESIZE=0

Disables the file-based history logging.

export HISTSIZE=0

Disables the history logging.

By the way zero in the two statements above means: 0 entries in the history = history is disabled :)

0 Responses to “Disabling Shell History Logging”


  • No Comments

Leave a Reply