clear

Clears the screen of the terminal. More information: <https://manned.org/clear>.

Install

All systems
curl cmd.cat/clear.sh
Debian Debian
apt-get install libncurses5-dbg
Ubuntu
apt-get install libncurses5-dbg
Alpine
apk add ncurses
Arch Arch Linux
pacman -S ncurses
image/svg+xml Kali Linux
apt-get install ncurses-bin
CentOS
yum install ncurses
Fedora
dnf install ncurses
Windows (WSL2)
sudo apt-get update sudo apt-get install libncurses5-dbg
OS X
brew install ncurses
Raspbian
apt-get install libncurses5-dbg
Docker
docker run cmd.cat/clear clear powered by Commando

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 by `clear`:
    clear -V

© tl;dr; authors and contributors