Shortcut keys commonly used in Linux systems

In the Linux system, the commonly used shortcut keys are as follows:

1.Ctrl+C: End (terminate) the current command. If you have entered a large string of characters but do not want to run it, you can press the Ctrl+C key combination, and the cursor will jump to the next line, and a ^C mark will be left at the cursor just now, as shown in the figure.

2. Tab: Realize the automatic completion function. This key is more important and frequently used. When you enter the first few characters of a command, file or directory, it will automatically complete it for you. For example, when you edit the configuration file of the network card, the file path is very long, and it will be very easy to combine the Tab key at this time.

3.Ctrl+D: Exit the current terminal. Similarly, you can also enter the command exit to realize this function.

4.Ctrl+Z: Suspend the current process. This is different from Ctrl+C. After suspending, use the fg command to resume the process.

5.Ctrl+L: Clear the screen and move the cursor to the first line of the screen. When the command and the displayed result occupy the entire screen, every time we run a command, it will be displayed on the last line, which seems inconvenient. At this time, we can use this shortcut key to move the cursor to the first line of the screen. It's called clearing the screen.

6.Ctrl+A: You can move the cursor to the front of the command. Sometimes a command is very long, and when you are almost finished typing, you find that a letter in front is wrong. At this time, you can directly use this shortcut key to position the cursor at the beginning of the line, and then use the left and right arrow keys to fine-tune the position of the cursor.

7.Ctrl+E: You can move the cursor to the back, the effect is the same as above.

 

Guess you like

Origin blog.csdn.net/basyn/article/details/130831222