Linux Command: clear

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

Introduction

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]

Example

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

clear

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.

Options

These are the options for the clear command.

Conclusion

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 *