In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system how to clear the screen, the article is very detailed, has a certain reference value, interested friends must read it!
1, clear command this command will refresh the screen, in essence, just let the terminal display page turned back one page, if you scroll up the screen can also see the previous operation information.
2. This is a shortcut key to clear the screen. This is the most frequently used way to clear the screen in my work. The effect of clearing the screen is the same as the clear command.
3, reset command this command will completely refresh the terminal screen, the previous terminal input operation information will be emptied, although it is relatively refreshing, but the whole command process is a bit slow and less used.
It is worth mentioning that the reset command is very useful when your terminal control is out of order. If the input character does not appear in the position of the cursor. And when you hit enter, the new prompt doesn't appear on the new line.
It appears in front of the old prompt. At this point, the reset command can be used to correct these problems.
4. Printf "\ 033c" command this command really clears the terminal screen, and its function is very similar to the CLS effect provided by CMD.EXE in DOS. But what exactly is this order for? How does it work?
\ 033 = =\ x1B = = 27 = = ESC
Thus, this command becomes c, which is the escape code for "Full Reset (RIS)" in VT-XXX. All the terminals we use today are VT compatible, and another way to implement it is as follows:
Enter Ctrl+v- > Esc- > c on the keyboard and add it back. But if you find yourself using a very strange terminal (as the author has tested on putty), you may not be able to use this command.
Printf is a built-in command in bash, which takes precedence over other executables.
Through the comparison of the above four screen cleaning methods, the author likes it under the PATH path, such as / usr/bin/ directory. Create a new file named cls, add execution permissions, and write content such as input:
In this way, we only need to enter the cls command every time we need to clear the screen.
The above is all the contents of the article "how to clear the screen in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.