[email protected]Support 24/7 · Billing 09:00 – 00:00LinkedInXFacebook
NexonHost
Netherlands Dedicated ServersAmsterdam · Equinix AM6Germany Dedicated ServersFrankfurt · Equinix FR4Romania Dedicated ServersBucharest · VoxilityAustria Dedicated ServersVienna · Interxion VIEBulgaria Dedicated ServersSofia · TelepointFrance Dedicated ServersParis · Interxion PAR — Marseille · Digital Realty MRS3Ireland Dedicated ServersDublin · Equinix DB2Italy Dedicated ServersMilan · Irideos AvalonPoland Dedicated ServersWarsawSpain Dedicated ServersMadrid · Equinix MD2United States Dedicated ServersAshburn · Equinix DC
All articles
Getting startedSeptember 14, 2023

How to use clear command in Linux.

How To Use Clear Command.

In Linux, clear is built-in command which is used to clear terminal screen.

This command runs on different distributions of Linux based operating systems like Ubuntu, Fedora, Debian, Kali, Red Hat etc. In this tutorial we will discuss syntax for command echo with examples.

clear Syntax

The syntax for command clear is:

clear

Clear Examples

Before executing clear command

$ echo Alex
Alex
$ echo Hello
Hello
$ echo Linux
Linux
$ clear

After executing clear command

clear Description

In addition to clearing terminal window, clear does following things:

  1. clear clears your screen if this is possible, including its scrollback buffer.

  2. clearlooks in the environment for the terminal type given by the environment variable TERM, and then in the terminfo databas to determine how to clear the screen.

  3. clear writes to the standard output. You can redirect the standard output to a file (which prevents clear from actually clearing the screen), and later cat the file to the screen, clearing it at that point.

For more detail, run man clear on terminal to get complete information about clear command.

Keep reading
How to List Groups in Linux.
September 6, 2023

How to List Groups in Linux.

How To List Groups In Linux This tutorial explains how to show all groups a user is a member of. We will also explain how to list all members of a group. Linux Groups There are two types of groups that a user can belong to: Primary or login group – is the group…

Read article
How to use apt command in Linux.
September 6, 2023

How to use apt command in Linux.

How To Use Apt Command. This guide serves as a quick reference for the apt commands. Most of the apt commands must be run as a user with sudo privileges. apt is a command-line utility for installing, updating, removing, and otherwise managing deb packages on Ubuntu, Debian, and related Linux…

Read article
How to Set DNS Nameservers on Ubuntu 18.04
September 6, 2023

How to Set DNS Nameservers on Ubuntu 18.04

How To Set DNS Nameservers On Ubuntu 18.04 The Domain Name System (DNS) is a central part of the web’s infrastructure, providing a way to translate domain names into IP addresses. You can think of the DNS as the Internet’s phone book. Each device connected to the Internet is uniquely identified by…

Read article
Get in Touch

Together, Let’s Build a Faster, Safer Internet.

Build scalable infrastructure with NexonHost — high-performance dedicated servers, VPS hosting, cloud hosting, and DDoS protection across Europe.

Get Started →Contact Us
[email protected]Support 24/7 · Billing 09:00 – 00:00