clear
Clears the screen of the terminal. More information: https://manned.org/clear.
-
Clear the screen (equivalent to pressing Control-L in Bash shell):
clear
-
Clear the screen but keep the terminal's scrollback buffer:
clear -x
-
Indicate the type of terminal to clean (defaults to the value of the environment variable
TERM
):
clear -T {{type_of_terminal}}
-
Show the version of
ncurses
used byclear
:
clear -V
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.