Take the 2-minute tour ×  Is there a way to clear up what is
displayed on the shell console (in ubuntu linux) in just a
single key or two? When I get flood of lines from grep and that
exceeds the height of the window, I want to quickly scroll back
to the position where I typed the command after the prompt. I
can do so if I had opened a fresh terminal before I type the
command, and just go to the initial position. But if keep using
the same terminal window, I have to manually find the position.
Ctrl+l is not an answer because it just scrolls, and the
contents of the terminal remains. I cannot use less because the
colored output of grep does not show up in color.  share|improve
this question I'm mildly confused. Are you looking for something
similar to cls in DOS? –  Iszi Mar 31 '11 at 18:28 I am not
familiar with DOS, but if that allows you to clear the window
and have your scroll bar at the top position, then that is what
I want. –  sawa Mar 31 '11 at 18:31 cls in DOS clears the
contents of the console and re