Bash terminal shortcut key

Time:2020-1-14
operation Shortcut keys
Move cursor to the beginning of line CTRL+A
The first time on time, move the cursor to the beginning of the line; the second time on time, return to the original position CTRL+X
Move cursor to end of line CTRL+E
Move the cursor one character to the left CTRL+B
Move the cursor one word to the left ESC+B
Move the cursor one character to the right CTRL+F
Move the cursor one word to the right ESC+F
Delete the character before the cursor, that is, backspace CTRL+H
Delete the character after the cursor, (equivalent to delete) if there is no character, it is equivalent to exit CTRL+D
Delete all characters before cursor CTRL+U
Delete all characters after the cursor; vertical tab, move down one line in the script, represented by / x0B CTRL+K
Delete the word before the cursor (separate the words according to the space) CTRL+W
Paste what you deleted before (Ctrl + U / K / W) CTRL+Y
Clear screen, equivalent to the command “clear” CTRL+L
Find and automatically match previously used instructions CTRL+R
Enter, equivalent to enter CTRL+M
Jump to a new line, equivalent to carriage return CTRL+O
Start a new line, which is equivalent to enter on the command line CTRL+J
Horizontal tab, which complements the command line with the same effect as tab CTRL+I
Complement instruction TAB
Last command, equivalent to up arrow CTRL+P
Next command, equivalent to down arrow CTRL+N
The next special character can be inserted in the current position. For example, ctrl-v can insert a character in the current position, and its ASCII is 9. Otherwise, in general, the result is command completion CTRL+V
Interrupt operation CTRL+C
Freeze terminal operations (pause script) CTRL+S
Resume freeze (continue script) CTRL+Q
Capitalize the first letter of the next word, and move the cursor forward for a word. If the cursor stays on a letter of the word, such as the O letter in word, the O letter becomes capitalized. Instead of W ESC+C
Make all letters of the next w ord capitalized, and move the cursor forward one word at the same time; if the cursor is on the O letter, then ord becomes capitalized, and W does not change ESC+U
Make all letters of the next w ord lowercase, and move the cursor forward one word at the same time; if the cursor is on the O letter, then ord becomes lowercase and W remains unchanged ESC+I
Replace the character at the cursor with the character before the cursor CTRL+T
Repeat the last instruction that starts with “word”, such as! LS or! L !word
Call the last parameter of the previous instruction as the current instruction object. For example, if the previous instruction is: LS abc.txt bbc.txt, then VI! $is equivalent to: VI bbc.txt !$
Call to execute the specified number of history instructions, such as! 2,! 11 !number

Pay attention to the public address

Bash terminal shortcut key