Quick Answer: What Is Cls in Linux?
Contents

It will be another name for clear . When you type cls , it will clear the screen just as though you had typed clear . … 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.

How do I use cls in Ubuntu?

There’s Ctrl + Shift + K for Konsole (reset and clear scrollback).” Now the cls command will clear the screen like in Windows. It will put you back to the top of a Terminal window, with no text shown above it. (It will not delete the shell’s command history.)

How do I use cls in bash?

So ⌘ + K to clear everything including scrolling. Ctrl + L to clear terminal window but still be able to see everything when scrolling up. The clear command only clears the visible screen but not the buffer so you can do Shift+PageUp to scroll up in the terminal and still view previous outputs.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

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.

Share this article
Twitter Facebook Pinterest