Definition:
When you want to clear the terminal screen to remove all previous commands and outputs, you use the clear
command.
Syntax:
$ clear
Example:
$ clear
Output:
# The terminal is now clear, and you can type new commands.
Explanation:
- After running the command, it only clears the terminal screen, removing all previous commands and outputs.
- This command clears the terminal without deleting any files or folders.