Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the keyboard shortcuts commonly used in Linux

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Linux commonly used shortcut keys which, the text is very detailed, has a certain reference value, interested friends must read!

Linux Shortcuts You Must Know

I want to mention that some shortcuts may depend on the Shell you use. Bash is the most popular shell, so the shortcuts listed are focused on Bash. You can also call it a Bash shortcut list if you like.

Note that I use capital letters for keyboard shortcuts, but that doesn't mean you have to hold down shift to use shortcuts.

1. Tab

These are Linux shortcuts you can't live without. It will save you a lot of time on the Linux command line. Just type in a command, file name, directory name or even the beginning of a command option and hit tab. It will automatically complete what you enter or show you all possible outcomes. If you remember only one shortcut key, this will be the required one.

2. Ctrl + C

These are the keys to press in order to interrupt commands or processes on the terminal. It will immediately terminate the running program. If you want to stop using a program that is running in the background, simply press this key combination.

3. Ctrl + Z

This shortcut key sends running programs to the background. Usually, you can do this before running the program with the & option, but if you forget to run the program with the option, use the key combination.

4. Ctrl + D

This pair of keyboard shortcuts will take you out of the current terminal. If you connect using SSH, it will close. If you use a terminal directly, the app will close immediately. Think of it as an "exit" command.

5. Ctrl + L

How do you clear your terminal screen? I guess it was with the clear command. You can use Ctrl+L to clear the terminal instead of typing C-L-E-A-R. Easy, isn't it?

6. Ctrl + A

This shortcut key 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, moving the cursor using the arrow keys will take a lot of time. Note that you cannot use the mouse to move the cursor to the beginning of a line. This is where Ctrl+A saves time.

7. Ctrl + E

This pair of shortcut keys is the opposite of Ctrl+A. Ctrl+A moves the cursor to the beginning of the line, whereas Ctrl+E moves the cursor to the end of the line.

8. Ctrl + U

Enter the wrong command? Instead of using the backspace key to discard the current command, use the Ctrl+U shortcut key in the Linux terminal. This shortcut key erases everything from the current cursor position to the beginning of the line.

9. Ctrl + K

This pair is similar to Ctrl+U. The only difference is that instead of 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 erasing text to the beginning and end of a line. But what if you just need to delete one word? Use Ctrl+W shortcut keys. Using Ctrl+W, you can erase the word before the cursor position. If the cursor is over a word itself, it erases all letters from the cursor position to the beginning of the word. The best way to do this is to use it to move the cursor over a space after the word you want to delete and then use Ctrl+W keyboard shortcut keys.

11. Ctrl + Y

This will paste text erased using Ctrl+W, Ctrl+U and Ctrl+K shortcuts. This will come in handy if you deleted the wrong text or need to use erased text somewhere.

12. Ctrl + P

You can use this shortcut key to view the previous command. You can press this key repeatedly to return to the history command. In many terminals, the PgUp key is used to perform the same function.

13. Ctrl + N

You can use this shortcut key in conjunction with Ctrl+ P. Ctrl+N Displays the next command. If you use Ctrl+P to see the previous command, you can use Ctrl+N to navigate back and forth. Many terminals map this shortcut key to the PgDn key.

14. Ctrl + R

You can use this shortcut key to search for historical commands.

The above is "Linux commonly used shortcut keys what" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report