Skip to content
Related Articles

Related Articles

clear command in Linux with examples
  • Last Updated : 26 Aug, 2020

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:

$clear

Example:

Terminal Before Executing clear command:

clear-command-in -linux

Terminal after Executing clear command:

clear-command-in-linux

Note:- In order to clear the terminal press [ctrl+l] and for GNOME terminal in ubuntu 18.04 press [shift + ctrl + alt + c]

My Personal Notes arrow_drop_up
Recommended Articles
Page :