SEARCH

How-To Geek

Clear the command shell window in Ubuntu

Very simple, either use the clear command:

clear

or hit Ctrl+L

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 09/11/06

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

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!