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...
| 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.
Must Read
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.