How Do I Use Cls in Linux?

How Do I Use Cls in Linux?
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
Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.