Skip to content

The clear command

The clear command empties the terminal screen; your files…

The clear command empties the terminal screen; your files, folder and history stay as they were.

A practice shell in your browser that behaves like bash on Linux for these commands. Nothing you type leaves the page.

Usage

clear

Clear the terminal screen. Empties the terminal window. Nothing else changes: your files and history stay. Ctrl+L does the same.

How to use clear

Clear the screen

Ctrl+L does the same.

clear

Questions about clear

Does clear delete my history?

No. It only clears what is on the screen. history -c clears the command history.

Every everyday command on one page, to print or keep open: the Linux commands cheat sheet.