[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1


clear Command

Purpose

Clears the terminal screen.

Syntax

clear

Description

The clear command clears your screen, if possible. The clear command first checks the TERM environment variable for the terminal type. Next, the /usr/share/lib/terminfo directory, which contains terminal definition files, is checked to determine how to clear the screen. If the TERM environment variable is not set, the clear command exits without taking any action.

Examples

To clear your screen, enter:

clear

Files


/usr/share/lib/terminfo Contains terminal information database.

Related Information

The tput command.

The Input and Output Redirection Overview in AIX 5L Version 5.1 System User's Guide: Operating System and Devices describes how the operating system processes input and output and how to use redirect and pipe symbols.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]