Clear the visible terminal screen.
clearClear the visible contents of the terminal screen.
clear [-T TYPE] [-V] [-x]Clear the visible terminal screen.
clearClear the screen while leaving the scrollback buffer intact.
clear -x| Option / clause | Description |
|---|---|
-T TYPE | Set the terminal type instead of using TERM. |
-V, --version | Display the version and exit. |
-x | Do not attempt to clear the terminal's scrollback buffer. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.