Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

tput(1), attributes(7)