Session and utilities
The clear command
Clears the terminal screen leaving the prompt at the top.
Copy-ready examples
$ clearClear the screenYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- The history is not erased; only the view is cleared.
FAQ
Does clear erase the command history?
No: it only wipes the screen; the history is still there with the up arrow.
Which shortcut does the same?
Ctrl+L clears the screen without typing anything.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course