It might help if you actually explained what you're trying to achieve.
For one thing, the clear history command only clears the memory of the running shell session. When a terminal exits, any history in ram gets written to your history file; and this file is then re-loaded when a new terminal is started. If you want to prevent that saved history from being loaded you have to clear or delete the history file instead, or start the session with the history function turned off.
(Edit: or add the "history -c" to your bashrc so that it gets run when the terminal is launched.)
See the HISTORY section of the bash man page for more.
Last edited by David the H.; 03-26-2010 at 12:11 PM.
|