Clear Command in Linux with Examples Last Updated : 09 Jun, 2023 Comments Improve Suggest changes 5 Likes Like Report clear is a standard Unix computer operating system command that is used to clear the terminal screen. This command first looks for a terminal type in the environment and after that, it figures out the terminfo database for how to clear the screen. And this command will ignore any command-line parameters that may be present. Also, the clear command doesn't take any argument and it is almost similar to cls command on a number of other Operating Systems. Syntax of the `clear` command in Linux clearUsing the `clear` command to clear the terminal in Linux. Terminal Before Executing clear command: clear-command-in -linux Terminal after Executing clear command: clear-command-in-linuxClearing our terminal using `clear -x` in Linux System Syntax: clear -x Terminal before using `clear -x` in Linux clear -x Terminal after using `clear -x` in Linux clear -xClear Using `CTRL + L` Shortcut in Linux System. We can clear our terminal by using short cut `CTRL+L`. For GNOME terminal in ubuntu 18.04 press `shift + ctrl + alt + c`. Using `reset` command to clear our terminal in Linux System. We can clear our terminal using the command `reset` in Linux. Syntax: resetUsing `\ec` command to clear our terminal in Linux System. We can clear our terminal by using command `\ec"` Syntax: printf "\ec" Where `\e` represent the ESC character and `c` is an escape sequence that is recognized by some terminal emulators to clear the screen. This command is used in some specific terminals only. What is the difference between `clear` and `reset` command. The `clear` command clears the terminal screen only while when talk about `reset` command, it not only clear the screen but also resets the terminal's settings to their default values. Conclusion In this article we have discussed the `clear` command and different ways to clear our terminal screen in Linux. One can easily understand these commands and with no effects can clear their terminal screen anytime. Create Quiz Comment L lakshaygarg0007 Follow 5 Improve L lakshaygarg0007 Follow 5 Improve Article Tags : Linux-Unix Explore Getting Started with LinuxIntroduction to Linux Operating System7 min readLINUX Full Form - Lovable Intellect Not Using XP2 min readDifference between Linux and Windows7 min readLinux Distributions6 min readDifference between Unix and Linux6 min readInstallation with LinuxInstallation of Arch Linux in VirtualBox4 min readFedora Linux Operating System5 min readHow to install Ubuntu on VirtualBox?6 min readHow to Install Linux Mint?3 min readInstallation of Kali Linux in Virtual Machine2 min readHow to Install Linux on Windows PowerShell Subsystem?2 min readHow to Find openSUSE Linux Version?2 min readInstallation of CentOS2 min readLinux CommandsLinux Commands15+ min readEssential Unix Commands7 min readFind Command in Linux with Examples7 min readLinux File SystemLinux File System12 min readLinux File Hierarchy Structure5 min readLinux Directory Structure6 min readLinux KernelLinux Kernel4 min readKernel in Operating System3 min readHow Linux Kernel Boots?11 min readDifference between Operating System and Kernel3 min readLinux Kernel Module Programming: Hello World Program7 min readLinux Loadable Kernel Module7 min readLoadable Kernel Module - Linux Device Driver Development4 min readLinux Networking ToolsNetwork configuration and troubleshooting commands in Linux5 min readHow to configure network interfaces in CentOS?5 min readCommand-Line Tools and Utilities For Network Management in Linux8 min readLinux - Network Monitoring Tools4 min readLinux ProcessProcesses in Linux/Unix5 min readHow to Manage Process in Linux4 min readGetting System and Process Information Using C Programming and Shell in Linux2 min readProcess states and Transitions in a UNIX Process4 min readLinux FirewallLINUX Firewall7 min readiptables command in Linux with Examples7 min readHow to Configure your Linux Firewall - 3 Methods12 min readShell Scripting & Bash ScriptingIntroduction to Linux Shell and Shell Scripting7 min readUnderstanding Terminal, Console, Shell and Kernel3 min readHow to Create a Shell Script in linux7 min readShell Scripting - Different types of Variables4 min readBash Scripting - Introduction to Bash and Bash Scripting12 min readBash Script - Define Bash Variables and its types12 min readShell Scripting - Shell Variables6 min readBash Script - Difference between Bash Script and Shell Script4 min readShell Scripting - Difference between Korn Shell and Bash shell3 min readShell Scripting - Interactive and Non-Interactive Shell3 min readShell Script to Show the Difference Between echo â$SHELLâ and echo â$SHELLâ4 min readLinux Administrator SystemWhat is Linux System Administration?6 min readBeginner's Guide to Linux System Administration5 min readHow to Monitor System Usage, Outages and Troubleshoot Linux Servers6 min readLinux - Systemd and its Components3 min readBoot Process with Systemd in Linux3 min readHow to Control Systemd Services on Remote Linux Server2 min readHow to Start, Stop and Restart Services in Linux Using systemctl Command9 min read Like