Linux

How to delete a Terminal on Ubuntu and other Linux distributions

How to delete a Terminal on Ubuntu and other Linux distributions

Clean up the mess and start fresh at the Terminal!

Often the terminal on Linux is filled with output from previous commands. That makes the terminal display chaotic and disorganized, especially when the previous output is no longer needed by the user. Therefore, it is good practice to clear the terminal screen after being filled.

There are several ways to delete terminals on Ubuntu and Linux distributions. Let’s explore one by one.

Ctrl + L Key Combination

The easiest and simplest way to clear the terminal screen is to press the Ctrl + L key combination.

Note that this is the default combination. Linux allows users to assign scripts / programs to key combinations. Therefore, the above combination must not be used as a special combination for anything else, in order to work in the terminal.

Clear command

The Clear command also cleans the terminal in the same manner as described above. The user must run the delete command to clear the screen.

1
2

Note that in the two methods above, the output displayed previously on the screen can still be seen by scrolling the terminal up.

3

Reset Orders

The reset command is used to initialize the terminal again. Then, it will also wipe the screen.

4

5

The difference in this method is, because of re-initialization, it is now a new terminal. Therefore, users cannot scroll up to see the longer output in this case.

Ctrl + Shift + K Combination in the Console

If you use the KDE desktop environment, the default terminal program is Konsole. Users can also install and use Konsole in another desktop environment.

Along with the method described above, there is a Ctrl + Shift + K key combination that can be used to clear the screen in the Konsole. This default combination is basically a shortcut for the reset command.

Add a Shortcut to the reset command in the Ubuntu terminal

Similar to the default Console key combination for the reset command, you can add a key combination to reset in the Gnome terminal on Ubuntu.

Open Terminal ┬╗Preferences.

6

Open the ‘Shortcut’ tab, scroll down until you see the ‘Reset’ option.

7

Double click on Reset. This will ask you to press the key combination. Verify that the combination you pressed is set to Reset.

8

We have explained several ways to erase and reset the terminal screen in this article. Hope you find them useful.

Related posts

How to Manage, Change and Reset MySQL and MariaDB Root Passwords

Linux

How to Install and Use a Linux Firewall

Linux

How to Install Mono on Ubuntu 20.04

Linux

Tutorial mktemp Linux Commands for Beginners (5 Examples)

Howto

How to Install PyroCMS with Nginx and Let’s Encrypt SSL on CentOS 8

Linux

How to Install Memcached on Ubuntu 20.04 LTS

Linux

How to Install and Configure the mod_pagespeed Module with Apache on Ubuntu 20.04 LTS

Linux

How to Install Skype on Ubuntu 20.04

Linux

How to Install Flatpaks on Ubuntu 20.04

Linux