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.

reset

That should do it.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>