Forrest logo
back to the clear tool

clear:tldr:65f4b

clear: Indicate the type of terminal to clean (defaults to the value of the environment variable `TERM`).
$ clear -T ${type_of_terminal}
try on your machine

The command "clear -T ${type_of_terminal}" in Unix/Linux is used to clear the contents of the terminal screen (${type_of_terminal} refers to the specific type of terminal).

The "clear" command is used to clear the current terminal screen and move the cursor to the beginning of the screen. It effectively removes all the previous commands, outputs, and any other content that was displayed on the screen.

The "-T" option is used to specify the type of terminal to clear. The ${type_of_terminal} variable should be replaced with the actual type of terminal you are using. This is useful when working with different terminal emulators that may have different settings or behavior.

For example, if you are using an xterm terminal, the command "clear -T xterm" will clear the screen and bring the cursor to the top-left corner of the terminal window.

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