System/Linux

linux - history clear

linuxism 2015. 7. 3. 09:15


First do a

history -c

and then a

history -w

to actually write everything on the .bash_history file (and overwrite it).
Then a

reset

clears the scroll buffer as well and all the past is forgotten and erased!


source - https://lists.fedoraproject.org/pipermail/users/2006-May/290451.html






# history -c && history -w