Contents
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.
Does CLS work in Linux?
It’s kind of like the clear command used in Linux, but it cleans the screen permanently. If you use the clear command, it just scroll down, so that you don’t see the command you where working on.
What is the CLS command in Linux?
DOS and Linux Commands
| 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 |