Re: Delete Terminal history?
Every time you exit a Terminal session, it saves the history to ~/.bash_history (that's to prevent multiple Terminal instances' history from interfering). So if you have a lot of history and then do "rm ~/.bash_history" but then you exit, everything you typed into the current session (including "rm ~/.bash_history") will be saved to a new history file. You have to do this to remove it all:
1) Exit any of your current Terminal sessions (which saves it to ~/.bash_history)
2) Open a new Terminal session and run "rm ~/.bash_history"
3) Exit that session
That should work. One thing I do if I don't want everything I typed in one session to be saved is I run "kill -9 $$" instead of exit. That forcibly kills the bash process and causes it to crash and close Terminal without saving history, while still preserving history from past sessions (kind of like an "incognito mode" for Terminal). I wouldn't always recommend that though because it kills bash, so if bash is trying to save anything that data might be corrupted, though I've never had a problem.
Last edited by Stonecold1995; November 15th, 2012 at 06:06 AM.
The whole thing is so patently infantile, so foreign to reality, that to anyone with a friendly attitude to humanity it is painful to think that the great majority of mortals will never be able to rise above this view of life.