Sometimes when you’re working with Linux, the terminal window gets too cluttered. With line after line of previous inputs and outputs, it can be distracting when you’re screen is so overcrowded with information. At times like these, it’s important to know how to clear the terminal and eliminate some clutter.
Whether you’re a Linux veteran in need of a reminder or a complete Linux novice, read on to learn several different methods for how to clear the Linux terminal.
Clearing the Linux Terminal
Before you can start clearing out your terminal, it’s important to know that not every terminal is identical, and they don’t all use the same shortcuts or commands. Depending on the specific terminal running in your version of Linux, some of these commands may work better than others.
The first and easiest way to remove the text from your terminal is using the clear command. Simply enter “clear” then press Enter to automatically remove all text currently in the terminal. While this method is quick and effective, it’s downside is that on most terminals, you will no longer be able to access what was previously on the screen after using the clear command.
If you’d like to clear out your terminal screen but still leave the option to access your previous lines later, the command Ctrl+L can be used to move the screen down by a page. This looks the same at first as the clear command, however, unlike the clear command, your previous inputs and outputs can still be accessed at any time by simply scrolling up in the terminal. Depending on your terminal, you may need to use the shortcut Ctrl+Shift+K instead.
And there you have it! With two methods for clearing the Linux terminal, you can declutter your terminal window as needed, using whichever method best suits your needs.
- How to Check the Apache Version on a Linux Dedicated cPanel Server
- How to Change a Password in Linux
- How to Check if Your Linux Server is Under DDoS Attack
Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.
The Hivelocity Difference
With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.