Clear Terminal History

James, Jason JJames at parts-unltd.com
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 lists.ubuntu.com [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Grizzly
Sent: Thursday, January 29, 2015 1:31 PM
To: ubuntu-users at lists.ubuntu.com
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 lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



More information about the ubuntu-users mailing list