man pages section 1: User Commands

Exit Print View

Updated: July 2014
 
 

clear(1)

Name

clear - clear the terminal screen

Synopsis

clear [term]

Description

The clear utility clears the terminal screen if this is possible. It looks in the environment for the terminal type, if this is not already specified by the term operand, and then looks up the terminfo database to figure out how to clear the screen.

Operands

term

Indicates the type of terminal. Normally, this operand is unnecessary because the default is taken from the environment variable TERM.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See also

tput(1), attributes(5)