How-To Geek
Clear the command shell window in Ubuntu
Very simple, either use the clear command:
clear
or hit Ctrl+L
Got Feedback? Join the discussion at discuss.howtogeek.com
Comments (3)
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 09/11/06




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