Multiple choice technology operating systems

Which command do you use to clear the screen on your session?

  1. CLS

  2. CLEAR

  3. tput clear

  4. tput cls

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The tput clear command is the portable way to clear the terminal screen in Unix/Linux systems. It uses the terminfo database to send the appropriate clear-screen sequence for whatever terminal type you're using. CLS is a Windows/DOS command and won't work in Unix shells, while CLEAR is not a standard command in any common shell.