Hi , Today we are discuss about .bash_profile & user History, Some client required don't show any history of UNIX user else ROOT also then do the following steps to hide history.
1. Login > root
2. # vim /home/oracle/.bash_profile # In my case user name is oracle
3. history -c
4. # Insert Line on .bash_profile
export HISTFILESIZE=0
export HISTSIZE=0
unset HISTFILE
5. $ . .bash_profile execute then relogin session and check.
Reference:
https://linuxconfig.org/how-to-disable-bash-shell-commands-history-on-linux
1. Login > root
2. # vim /home/oracle/.bash_profile # In my case user name is oracle
3. history -c
4. # Insert Line on .bash_profile
export HISTFILESIZE=0
export HISTSIZE=0
unset HISTFILE
5. $ . .bash_profile execute then relogin session and check.
Reference:
https://linuxconfig.org/how-to-disable-bash-shell-commands-history-on-linux
No comments:
Post a Comment