In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How does linux clear the screen? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
In the DOS interface of windows, the command to clear the screen is cls, so what is the command to clear the screen in linux? Here are some ways to clear the screen under linux.
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. Ctrl+l (lowercase L), 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 little 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 does not appear on the new line, but in front of the old prompt. At this point, the reset command can be used to correct these problems.
Here are some terminal shortcuts:
1. Tab
This is the Linux shortcut you can't do without. It will save you a lot of time on the Linux command line.
Just type a command, file name, directory name, or even the beginning of the command option, and press the tab key. It will automatically complete your input or show you all possible results.
If you only remember one shortcut key, this will be the one you must choose.
2. Ctrl + C
These are the keys that should be pressed to interrupt the command or process on the terminal. It will immediately terminate the running program.
If you want to stop using a running program, just press this pair of keys.
3. Ctrl + Z
This shortcut sends the running program to the background. Usually, you can do this before using the & option to run the program, but if you forget to use the option to run the program, use this pair of keys.
4. Ctrl + D
This pair of keyboard shortcuts will take you out of the current terminal. If you use SSH connection, it will be closed. If you use a terminal directly, the application will be closed immediately.
Think of it as an "exit" command.
5. Ctrl + L
How do you empty your terminal screen? I guess using the clear command.
You can use Ctrl+L to clear the terminal instead of typing C-L-E-A-R. It's easy, isn't it?
6. Ctrl + A
The shortcut moves the cursor to the beginning of the line.
Suppose you enter a long command or path at the terminal, and you want to go back to the beginning of it, using the arrow keys to move the cursor will take a lot of time. Note that you cannot use the mouse to move the cursor to the beginning of the line.
This is where Ctrl+A saves time.
7. Ctrl + E
This pair of shortcut keys is the opposite of Ctrl+A. Ctrl+A sends the cursor to the beginning of the line, while Ctrl+E moves the cursor to the end of the line.
8. Ctrl + U
Entered the wrong command? Instead of using the Backspace key to discard the current command, use the Ctrl+U shortcut key in the Linux terminal. The shortcut erases everything from the current cursor position to the beginning of the line.
9. Ctrl + K
This pair is a bit like Ctrl+U keyboard shortcuts. The only difference is that it is not the beginning of the line, it erases everything from the current cursor position to the end of the line.
10. Ctrl + W
You just learned about the text erased to the beginning and end of the line. But what if you only need to delete one word? Use the Ctrl+W shortcut key.
Using the Ctrl+W shortcut, you can erase the word in front of the cursor position. If the cursor is over a word itself, it erases all letters from the cursor position to the prefix.
The best way is to use it to move the cursor over a space after the word you want to delete, and then use the Ctrl+W keyboard shortcut.
11. Ctrl + Y
This pastes the text erased using the Ctrl+W,Ctrl+U and Ctrl+K shortcuts. This will come in handy if you delete the wrong text or need to use erased text somewhere.
12. Ctrl + P
You can use this shortcut to view the previous command. You can press the key repeatedly to return to the history command. In many terminals, the PgUp key is used to achieve the same function.
13. Ctrl + N
You can use this shortcut with Ctrl+P. Ctrl+N displays the next command. If you use Ctrl+P to view the previous command, you can use Ctrl+N to navigate back and forth. Many terminals map this shortcut to the PgDn key.
14. Ctrl + R
You can use this shortcut to search for history commands.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.