Microsoft DOS cls command

Quick links

About cls
Availability
Syntax
Examples

About cls

Cls is a command that allows a user to clear the complete contents of the screen and leave only a prompt.

Availability

The cls command is an internal command and is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

CLS

Examples

cls

Running the cls command at the command prompt would clear your screen of all previous text and only return the prompt.

Additional information

  • See our clear definition for further information and related links on this term.