Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How can I clear the command history in Linux?

Answer:

Try:

history -c

  1. How to avoid saving current shell session history
  2. How to clear the screen in Linux
  3. How to avoid command being saved to shell history
  4. Display timestamp information in command history
  5. Quickly clear the screen

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>