How to clear all previous terminal output which is currently visible?

J

Jason Stacy

Assume I have opened a terminal and already performed some commands which produced some
output lines.

Then I start a perl script which outputs also some line of text.

However I want at first all previous output lines in the terminal to be wiped.
All output should start with an "empty" terminal (of cause beside the prompt).

How can I wipe all old stuff?

In Windows command prompt there is a "cls" command but is not working in
perl/Linux terminals.

Is there an equivalent command?

Jason
 
J

Jürgen Exner

However I want at first all previous output lines in the terminal to be wiped.
How can I wipe all old stuff?

perldoc -q clear: "How do I clear the screen?"

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top