Linux Command: clear

Published on February 18, 2022 at 3:46 pm by LEW


The clear command does what it says, it clears the terminal display. The basic command has been around since 1979.

This is going to be short and simple. The clear command has very few options, and is usually run without any.

Syntax and Function

The syntax for the clear command is:

clear [options]


Basic usage of the command clear is as follows, with no options.


This this will clear the current screen, and scroll back buffer.

Using the -x option will attempt to clear the screen while leaving the scroll back buffer in tact.


These are the options for the clear command.


This is a quick review of the clear command. Its usage is simple and straight forward.

Add New Comment

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