Cls command
Updated: 07/13/2023 by Computer Hope
The cls (clear screen) command allows users to clear all the contents on the screen and leave only a prompt.
Availability
Cls is an internal command and is available in the following Microsoft operating systems.
- All Versions of MS-DOS
- Windows 95
- Windows 98
- Windows Me
- Windows NT
- Windows 2000
- Windows XP
- Windows Vista
- Windows 7
- Windows 8
- Windows 10
- Windows 11
Cls syntax
CLS
Cls example
cls
Running the cls command at the command prompt clears your screen of all previous text (history) and only returns the prompt. Once done, scrolling to see all previously entered commands and results is no longer possible.