The CLI in Windows

The CLI in Windows

Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Index | Next >

The CLS Command (Internal)

Learning objective: Explain the use of the CLS command


Click on image to enlarge.

cls (for clear screen) is a command used by the command line interpreters COMMAND.COM and cmd.exe on DOS, OS/2 and Microsoft Windows operating systems to clear the screen or console window of commands and any output generated by them. It does not clear the user's history of commands, however. In other environments, such as Linux and Unix, the same functionality is provided by the "clear" command. [Wikipedia]

CLS /?

In this example, you can see that "CLS" or clear screen has no objects or options as part of its syntax. It is just "CLS". To clear the screen, enter "CLS". Try it!

Thinking: Why have a CLS commands anyway?

Key terms: CLS

Resources:
To maximize your learning, please visit these Web sites and review their content to help reinforce the concepts presented in this section.

Quick links:
CLS Command @ Wikipedia

Embedded Resources

Notes on navigation: Click inside the frame to navigate the embedded Web page. - Click outside the frame to navigate this page to scroll up/down between the embedded Web pages. - Click on the frame title to open that page in a new tab in most browsers. - Click on the the "Reload page" link to reload the original page for that frame.

CLS Command @ Wikipedia | Reload page | If frame is empty, click on the link to view the page in a new tab or window

Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Index | Next >