To clear the terminal on Linux, you can use the following commands:
-
Using the
clearcommand:clear -
Using the keyboard shortcut:
- Press
Ctrl + L. This will also clear the terminal screen.
- Press
-
Using the
resetcommand:resetThis command reinitializes the terminal, which can be useful if the terminal is in an unusual state.
Usage:
Simply type the command and press Enter, or use the keyboard shortcut, and your terminal screen will be cleared, providing a clean workspace for new commands.
