Linux users are basically used to clearing terminal screens by using the clear command or Ctrl & amp; 43; L combination of shortcuts. In fact, this is not true.
Linux users are basically used to clearing terminal screens by using the clear command or Ctrl + L combination shortcut keys. In fact, the screen is not really cleared, but when you scroll up with the mouse, you can still see the output of the previous command operation.
The command printf "\ 033c" or printf "\ ec" truly clears the terminal screen.
How does it work? \ 033 = \ x1B = 27 = ESC so this command becomes c, which is the escape code in the VT-XXX that represents "Full Reset (RIS. Printf is a built-in command in bash, which has a higher priority than other executable files.
Reset also truly clears the terminal screen. This command is executed slowly, but its compatibility is obviously better than the previous one. The reset command is useful when your terminal is out of control.