How-To Geek

Clear the command shell window in Ubuntu

Very simple, either use the clear command:

clear

or hit Ctrl+L

Don't show again X

Subscribe

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your email below:


Email:

Comments (3)

  1. Alp

    CTRL+L is quite useful because of the large space between your last output and your current cursor position.

  2. David Newkirk

    These commands do *not* clear your command history; at best, they clear the terminal and move the prompt to the top of the window (if you’re in a graphical desktop). Press UP ARROW and you’ll still see your command history.

    To clear the command history of a terminal session, do

    history -c

  3. alg

    To clear the command history of a terminal session forever

    history -c

    you have to do this after :

    history -w

Comments are closed on this post.

If you'd like to continue the discussion on this topic, you can do so at our forum.


Go to the Forum