Clears the terminal screen.
clear
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.
To clear your screen, enter:
clear
Item | Description |
---|---|
/usr/share/lib/terminfo | Contains terminal information database. |