From: Peter Hanke on
Assume I opened a terminal window and entered a lot of commands.

Is there a way to clear all previous input and output lines on this terminal window?
Of cause without closing and re-opening the Terminal window.
Afterwards the terminal should look like as if the terminal had been just opened.
All history lines are deleted.

I guess there is a command like

clr

or similar to achieve this

Peter

From: John Taylor on
On Wed, 27 Jan 2010 11:52:11 +0000, Peter Hanke wrote:

> Assume I opened a terminal window and entered a lot of commands.
>
> Is there a way to clear all previous input and output lines on this
> terminal window? Of cause without closing and re-opening the Terminal
> window. Afterwards the terminal should look like as if the terminal had
> been just opened. All history lines are deleted.
>
> I guess there is a command like
>
> clr
>
> or similar to achieve this
>

How about:

clear

?


From: GangGreene on
John Taylor wrote:

> On Wed, 27 Jan 2010 11:52:11 +0000, Peter Hanke wrote:
>
>> Assume I opened a terminal window and entered a lot of commands.
>>
>> Is there a way to clear all previous input and output lines on this
>> terminal window? Of cause without closing and re-opening the Terminal
>> window. Afterwards the terminal should look like as if the terminal had
>> been just opened. All history lines are deleted.
>>
>> I guess there is a command like
>>
>> clr
>>
>> or similar to achieve this
>>
>
> How about:
>
> clear
>
> ?


Doesn't work :(

Every time I use it the screen goes blank!

From: Bit Twister on
On 27 Jan 2010 11:52:11 GMT, Peter Hanke wrote:
> Assume I opened a terminal window and entered a lot of commands.
>
> Is there a way to clear all previous input and output lines on this terminal window?
> Of cause without closing and re-opening the Terminal window.

Yes. Two methods come to mind. Have you tried

man -k terminal | grep \(1

> Afterwards the terminal should look like as if the terminal had been just opened.
> All history lines are deleted.

tput clear ; history -c
clear ; history -c
From: Regis on
peter_ha(a)andres.net (Peter Hanke) writes:

> Assume I opened a terminal window and entered a lot of commands.
>
> Is there a way to clear all previous input and output lines on this terminal window?
> Of cause without closing and re-opening the Terminal window.
> Afterwards the terminal should look like as if the terminal had been just opened.
> All history lines are deleted.
>
> I guess there is a command like
>
> clr
>
> or similar to achieve this


clear

is the command that you seek, I think.