Quick Answer: Which Command in Linux Is Equivalent to Cls Command in Dos?
Contents
Command’s Purpose MS-DOS Basic Linux Example
Clears screen cls clear
Closes prompt window exit exit
Displays or sets date date date
Deletes files del rm thisfile.txt

What is CLS command in DOS?

In computing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exe on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them.

How do I use CLS in Linux?

When you type cls , it will clear the screen just as though you had typed clear . Your alias saves a few keystrokes, sure. But, if you frequently move between Windows and Linux command line, you can find yourself typing the Windows cls command on a Linux machine that doesn’t know what you mean.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest