Linux clear Command and Clearing Shell/Terminal Screen

Linux clear Command

This article will show you how to use the Linux clear command to clear the terminal screen. Quick and easy!

Clearing the Terminal/Shell Screen

If you’ve been executing a bunch of commands from your Linux terminal, things can start to look a bit cluttered. It would help if you could clear the screen of previous output and commands and have a fresh start.

That’s what the clear command is for.

clear Command Syntax

Here’s the syntax for the clear command:

clear

Pretty simple. There are a couple of options to change the command’s behavior, but they’re not really required for general usage. You can view them in the user manual by running:

man clear

Using the clear Command

Type

clear

and press the ENTER key. The screen will be cleared. That’s all there is to it.

Keyboard Shortcuts to Clear the Screen

Most GUI terminal emulators allow you to clear the screen with a keyboard shortcut. Usually, it’s

CTRL + L

..But it may differ depending on your Linux distribution or OS – it’s worth checking the user manual for your terminal software.

SHARE:
nv-author-image

Brad Morton

I'm Brad, and I'm nearing 20 years of experience with Linux. I've worked in just about every IT role there is before taking the leap into software development. Currently, I'm building desktop and web-based solutions with NodeJS and PHP hosted on Linux infrastructure. Visit my blog or find me on Twitter to see what I'm up to.

Leave a Reply

Your email address will not be published. Required fields are marked *