Clearing the command cache of terminal (gnome-terminal)

Nils Kassube kassube at
Fri Mar 28 12:54:42 UTC 2008

Ioannis Vranos wrote:
> How can I clear the previous commands cache of terminal
> (gnome-terminal)?

If you don't want to save the cache to disk, use the command


within the terminal. If you want to clear the cache of the current session 
immediately, use this command:

export HISTSIZE=0

If you want to make those settings permanent, include the commands in the 
file "$HOME/.bashrc".


More information about the ubuntu-users mailing list