Back to the command reference

clear

ShellBeginner In simulator In real Linux

Clear the terminal screen

Name: clear: clears the screen

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

clear wipes the terminal screen and moves the cursor to the top left, using the TERM variable to find the right control sequence. Ctrl+L does the same in most terminals.

Syntax

clear

Examples

  • $ clear

    Clear the screen (Ctrl+L works too)

    Explain

Related