Categories
Uncategorized

Delete shell history

You can login as the user you want to delete history from and then use the following command. For example if you want to delete from root

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