Contents
clear(1) – Linux man page
- clear – clear the terminal screen.
- clear.
- clear clears your screen if this is possible. It looks in the environment for the terminal type and then in the terminfo database to figure out how to clear the screen.
- clear ignores any command-line parameters that may be present.
- tput(1), terminfo(5)
Which command is used to clear the screen in Linux?
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.
How do I clear the screen in Ubuntu?
To clear your screen do one of the following:
- Issue clear or cls in your shell.
- Press Ctrl+L or other hotkey, if your shell supports it. Even cmd+clink may do that.
- Restart your tab.
- (Use very carefully) Set hotkey for action ‘Reset terminal: clear screen, backscroll, move cursor to the upper-left corner’.