Forrest logo
back to the clear tool

clear:tldr:5056c

clear: Clear the screen but keep the terminal's scrollback buffer.
$ clear -x
try on your machine

The command "clear -x" is used to clear the screen while also showing the current time and date.

When you execute this command in a terminal or console, it will clear the screen by removing any previous text or output. Additionally, it will display the current time and date at the top of the cleared screen.

This can be useful when you want to clear the cluttered terminal screen and quickly view the time and date without having to execute another command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the clear tool