I accidentally copied a huge block of text into my Centos6.2 shell and it's annoying me in my bash history, how can I delete it?
I tried to run history -d {{ number }}
but it comes back the next time I open a shell :(
Additionally when I tried using history -d $i
in a for i in list loop
, I don't think it deleted anything as they run in subshells .