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: |
- By The Geek on 09/11/06
Comments (3)
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

CTRL+L is quite useful because of the large space between your last output and your current cursor position.
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
To clear the command history of a terminal session forever
history -c
you have to do this after :
history -w