Sometimes you just need to clear your history in Terminal. It’s actually pretty easy to do.
1 |
history -c |
If you’d rather not have your history saved to a file at all, add the following line to your ~/.bash_profile:
1 |
unset HISTFILE |
This way, your command history is limited to only those commands you used during the current session. More information and options can be found on the bash man page
1 |
man bash |