Clear terminal history from Linux Machine

Clear terminal history from Linux Machine

Below command is useful to delete terminal history

history -c 

Also you can use below command for complete deletion of terminal history

cat /dev/null >~/.bash_history && history -c && exit

To delete uses of USB and other external h/w logs, login with root user and do the below

cd /var/log

rm -f messages-*

No comments:

Post a Comment