Sunday, April 28, 2024
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 68523  / 2 Years ago, sun, august 14, 2022, 3:16:57

I used to use cmd back in windows, and the command line I used a lot, was cls. It's kind of like the clear command used in Linux, but it cleans the screen permanently.



If you use the clear command, it just scroll down, so that you don't see the command you where working on.



I like both a lot, but my question is, how do i get a cls like command, that clears the screen, and can't browse up, to see the command you where working on?


More From » command-line

 Answers
1

You can use reset. This resets the whole terminal, so that may be a bit overkill though.



Note on Konsole:

@Mechanical snail noticed "in Konsole 4.8.5, the old text is still there if you scroll up".
@gertvdijk explained that it is "a feature. There's Ctrl+Shift+K for Konsole (reset and clear scrollback)."


[#39500] Monday, August 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
icielight

Total Points: 158
Total Questions: 92
Total Answers: 93

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
icielight questions
;