mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
537 B
Plaintext
26 lines
537 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# clear
|
|
|
|
> Clears the screen of the terminal.
|
|
> More information: <https://manned.org/clear>.
|
|
|
|
- Clear the screen:
|
|
|
|
`clear`
|
|
|
|
- Clear the screen but keep the terminal's scrollback buffer (equivalent to pressing `<Ctrl l>` in Bash):
|
|
|
|
`clear -x`
|
|
|
|
- Indicate 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 -V`
|