2

I’m sure this question has been asked a million and one times already. I saw a video the other day about accessing all lost passwords and usernames through terminal nnd my question is are you able to clear that data at all? So there is no previous history of those account even existing? All of this is far out of my knowledge area so sorry for sounding like a noob.

TIA

1 Answers1

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

This will help you to clear history of terminal, even if history saved in the history file as well as the history in the current session.

However, if you need to do it with a bit of secure way, I would suggest using following method.

shred -u ~/.bash_history && touch ~/.bash_history