clear

Linux · Terminal · available in the simulator

What it does

Clear the terminal screen.

Syntax

clear

Options and parameters

  • -x

    Do not clear the scrollback buffer.

Usage examples

  • clear
  • clear -x

Notes and common mistakes

  • Clears the screen; Ctrl+L performs the same action.
Practise clear

Related commands