snippetbashTip
clear — Clears the screen of the terminal. More information: <https://manned.org/clear>.
Viewed 0 times
theterminalcommandclearscliscreenclear
Problem
How to use the
clear command: Clears the screen of the terminal. More information: <https://manned.org/clear>.Solution
clear — Clears the screen of the terminal. More information: <https://manned.org/clear>.Clear the screen:
clearClear the screen but keep the terminal's scrollback buffer (equivalent to pressing
<Ctrl l> in Bash):clear -xIndicate the type of terminal to clean (defaults to the value of the environment variable
$TERM):clear -T {{type_of_terminal}}Display the version of
ncurses used by clear:clear -VCode Snippets
Clear the screen
clearClear the screen but keep the terminal's scrollback buffer (equivalent to pressing `<Ctrl l>` in Bash)
clear -xIndicate the type of terminal to clean (defaults to the value of the environment variable `$TERM`)
clear -T {{type_of_terminal}}Display the version of `ncurses` used by `clear`
clear -VContext
tldr-pages: common/clear
Revisions (0)
No revisions yet.