Name

cls

Synopsis

Type cls at the prompt to clear the screen and the screen buffer, useful for privacy concerns or simply to reduce clutter. The difference between using cls and simply closing the current command prompt window and opening a new one, is that you're working environment (such as the current directory) is preserved with cls.

cls is also useful in complex batch files, for clearing the screen after one set of interactions or command output. The name cls (Clear Screen) refers to the old days when DOS owned the whole screen.

Get Windows XP Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.