Account
Categories

Clear command


Definition:

When you want to clear the terminal screen to remove all previous commands and outputs, you use the clear command.

Syntax:

$ clear

Example:

Command:

$ 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.
  • Note: This command clears the terminal without deleting any files or folders.