Our Knowledge Base provides step-by-step guides, troubleshooting tips, and expert insights to help you manage VPS, dedicated servers, domains, DDoS protection, and more — all designed to make your experience with us fast, secure, and stress-free.
This command runs on different distributions of Linux based operating systems like Ubuntu, Fedora, Debian, Kali, Red Hat etc. In this tutorial we will discuss syntax for command echo with examples.
The syntax for command clear is:
clear
$ echo Alex Alex $ echo Hello Hello $ echo Linux Linux $ clear
In addition to clearing terminal window, clear does following things:
clear clears your screen if this is possible, including its scrollback buffer.
clearlooks in the environment for the terminal type given by the environment variable TERM, and then in the terminfo databas to determine how to clear the screen.
clear writes to the standard output. You can redirect the standard output to a file (which prevents clear from actually clearing the screen), and later cat the file to the screen, clearing it at that point.
For more detail, run man clear on terminal to get complete information about clear command.