Clear Terminal History

James, Jason JJames at
Thu Jan 29 19:32:27 UTC 2015

Something like the following should clear both memory and what's causing it to come back for you.

cat /dev/null > ~/.bash_history && history -c && exit

-----Original Message-----
From: ubuntu-users-bounces at [mailto:ubuntu-users-bounces at] On Behalf Of Grizzly
Sent: Thursday, January 29, 2015 1:31 PM
To: ubuntu-users at
Subject: Clear Terminal History

Hi All

I have Googled this and not found an answer "that works"

I would like to delete / clear my terminal history, I've tried 

history -c
history -w
history -cw
history -c-w
history -wc
history -w-c

after closing the terminal session on re-start all cmd-lines remain

ubuntu-users mailing list
ubuntu-users at
Modify settings or unsubscribe at:

More information about the ubuntu-users mailing list