Clear terminal history in Linux

Use a terminal command to clear history in Linux

Here's how you can clear your terminal history in Linux with one simple command.

1. Open a terminal window.

2. Type in the following command then hit Enter.

history -c

Every now and then we realize that there’s a tip that we haven’t covered, and even when it’s as simple as clearing your terminal history, we feel compelled to write about it. Here’s how to clear your history on Linux or Mac OS X.

More at How To Geek

Additional resources for Linux

Linux Kernel Archives

Linux.org

Linux at Wikipedia

This article is published as part of the IDG Contributor Network. Want to Join?

From CIO: 8 Free Online Courses to Grow Your Tech Skills
Notice to our Readers
We're now using social media to take your comments and feedback. Learn more about this here.