Frank Vilea Frank Vilea - 1 year ago 151
Linux Question

Delete terminal history in Linux

When you use the up key in a Linux terminal, you can use previous commands again. Great feature. However, I started logging mysql into mysql with the sensitive details in the command.

How can I delete that history?

Answer Source

You can clear your bash history like this:

history -cw

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download