gnome-terminal

Clear a terminal screen for real

[亡魂溺海] 提交于 2019-11-27 02:28:45
Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when you scroll using the mouse. This makes life difficult when you are drowning in a tsunami of text. Various solutions (escape code etc.) which can be found on the Internet are only variations of what the clear command already does. So how do you clear the contents of a terminal in Linux for real? Autodidact Use the following command to do a clear screen instead of merely adding new lines ... printf "\033c" yes that's a 'printf' on the

Clear a terminal screen for real

独自空忆成欢 提交于 2019-11-26 10:04:43
问题 Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when you scroll using the mouse. This makes life difficult when you are drowning in a tsunami of text. Various solutions (escape code etc.) which can be found on the Internet are only variations of what the clear command already does. So how do you clear the contents of a terminal in Linux for real? 回答1: Use the following command to do a