In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about what the commonly used terminal shortcuts that Linux users must know are. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Here are some keyboard shortcuts that every Linux user must use. These Linux shortcuts will improve your productivity when using the command line.
Do you know what separates professional users from ordinary users? Master keyboard shortcuts.
Yes! This is not the only factor, but it is undoubtedly a factor.
No matter what tool you use, keyboard shortcuts can help you improve your productivity and efficiency. Think about it. What would you think if someone completely used the mouse to copy the entire text instead of Ctrl+A?
Linux terminals are no exception. Here are some Linux terminal shortcuts that each user must go to and practice.
Trust me; once you've mastered these shortcuts, you'll see how good it is to use the Linux command line.
Linux shortcut keys that must be known
I would like to mention that some keyboard shortcuts may depend on the Shell you use. Bash is the most popular shell, so the shortcuts listed focus on Bash. You can also call it a list of Bash shortcuts if you like.
Notice that I use uppercase letters in keyboard shortcuts, but that doesn't mean you have to press shift when using keyboard 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 program that is running in the background, 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.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
After reading the above, do you have any further understanding of the common terminal shortcuts that Linux users must know? If you want to know more knowledge or related content, 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.