clear
Quick Reference
Command Name:
clear
Category:
terminal control
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Terminal cleanup
Clear the terminal screen for better readability
- 2
Presentation preparation
Prepare terminal for demonstrations or presentations
- 3
Workflow organization
Organize terminal workspace by clearing clutter
- 4
Debugging assistance
Clear screen to focus on specific output or errors
Syntax
clear [OPTION]
Options
| Option | Description |
|---|---|
-T TERM |
Use this terminal type instead of the value of $TERM |
-V |
Display version information and exit |
-x |
Do not attempt to clear terminal's scrollback buffer |
Examples
How to Use These Examples
The examples below show common ways to use the clear command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
clear
clear -V
clear && ls -la
echo -e "\033c"