The clear command reads your
entry to find out how to erase your screen, then it sends that command.
If you're typing something confidential that other people shouldn't
read, just type
clear at a shell prompt when you can.
Many UNIX programs let you do a
to run a single UNIX command - you can clear your screen that way, by
typing something like
!clear from inside the program.
NOTE: Some terminals and window systems have memories - scrolling buffers that save previous screens or the current one. The clear command probably won't clear those. Check your manual to find out how - or, if you're desperate, log off UNIX, then turn off your screen's power for a minute.
If you leave your desk for a long meeting or for the day, then remember that you didn't erase your screen, you can probably clear your screen from another user's terminal. (If your system has the, then you'll have to log in or to your account from the other terminal first.) If the other terminal has the same terminal type, use the command:
If you're on a different type of terminal, you'll need to set the TERM environment variablebefore you use that command.