Tuesday, October 5, 2010

howto clear bash history?

Another way to clear history is to delete .bash_history file. 
rm -f ~/.bash_history 

However, actions on .bash_history will not clear the history of commands 
used in the bash session running at that time. That history is stored in 
RAM and written to .bash_history when the session ends. The correct way 
to clear history is to use 'history -c' because this will clear all 
history, including commands used in the session from which the command 
'
history -c' is given.

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...