Copy from https://www.howtogeek.com/179022/how-to-clear-the-terminal-history-on-linux-or-mac-os-x/ as a note to self
Clear the Current Session's History
Your history can be broke down into two chunks. There's your current sessions' history, and there's your long-term history. Our first command, history -c, deals with the current session.
Clear All of Your Bash History
If you want to remove the entirety of your history, run the following command:
rm ~/.bash_history
Use open ~/.bash_history to view and edit
No comments:
Post a Comment