Use ‘reset’ to Completely Remove the Text Output on Your Terminal Window (tip)

When using the Terminal window in GNU/Linux the screen can easily get filled up with text outputs and it can be quite distracting. And one way of clearing out the ‘mess’ is to use the command called ‘clear’.

This commands clears out all the text output on your Terminal window and you’ll get a shiny, clear looking ‘prompt’. It carries out its purpose in a perfection under the original command-line but not so well inside a ‘Terminal emulator (window)’ (a program that emulates the command-line from a window manager, like the one called ‘Gnome Terminal’ that comes with Ubuntu).

Now even under a Terminal emulator it’ll still clear out the screen’s output but because in a terminal emulator you can scroll up/down (using scrollbars or mouse), if you scroll up (say accidentally), then you’ll see the previously cleared text output by the ‘clear’ command.

Welcome to the betrayal of the ‘clear’ 😉 …

Now to be fair, ‘clear’ command has its uses but this is not helpful while using programs like ‘find’ or ‘ls’ as you easily get lost in between the ‘new’ and the ‘old’ text outputs while scrolling up or down. Luckily there’s another command that completely clears out the screen, and even the scrollbars won’t be bothering you anymore ;-).

So whenever you want to actually clear out all the output above thus giving you a ‘brand new’ prompt, simply use the below command.


That should do it.

An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

2 thoughts on “Use ‘reset’ to Completely Remove the Text Output on Your Terminal Window (tip)”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.