In Linux without a desktop environment, the command-line mode terminal operation is inevitably a bit difficult, but learning to use some shortcuts will do more with less. Common shortcut keys under the Linux command line are:
Delete:
CTRL + D deletes the character at the cursor position, which is the equivalent of Vim x or DL
CTRL + H deletes the character before the cursor position, which is equivalent to the HX or DH in vim
CTRL + K removes all characters following the cursor, which is equivalent to the D or shift+$ in vim
CTRL + U removes all characters in front of the cursor, which is equivalent to the D or shift+^ in vim
CTRL + W Deletes the previous word of the cursor, which is equivalent to the DB in Vim
Ctrl + Y restores the characters that were deleted when Ctrl+u was last executed
CTRL +? Undo Previous Input
ALT + R undo Previous action
ALT + D Delete the word after the cursor position
Move:
CTRL + A moves the cursor to the beginning of the command line equivalent to Vim shift+^
CTRL + E moves the cursor to the end of the command line at the equivalent of vim shift+$
CTRL + F cursor moves backwards one character equivalent to Vim in L
CTRL + B cursor moves forward one character equivalent to Vim in H
CTRL + ARROW key left cursor moves to the beginning of the previous word
CTRL + ARROW key right cursor moves to the end of the next word
CTRL + X jumps between the last character of the cursor and the character at which the current cursor is located
ALT + F jumps to the end of the word at the cursor position
Replace:
CTRL + T replaces the current character of the cursor with one of the preceding characters
ALT + T swap two cursor at the current position of the word and the previous word of the cursor
ALT + U change the current position of the cursor to uppercase
ALT + L CHANGE the current position of the cursor to lowercase
ALT + C capitalizes the first letter of a word in the current position of the cursor
History command Edit:
CTRL + P returns the last input command character
CTRL + R Enter Word search history command
ALT + P input character find history command close to Word typeface
Other:
CTRL + S lock Terminal
CTRL + Q unlock Terminal
CTRL + L clear screen equivalent to command clear
CTRL + C Cancel command or terminate run
CTRL + I similar to tab completion function
CTRL + O repeat command
Number of ALT + number key operations
Shortcut keys under Vim:
Copy, delete:
YW represents the copy of the content from the current cursor to the end of the word at the cursor.
DW represents the deletion of content from the current cursor to the end of the word at the cursor.
Y0 represents the copy from the current cursor to the beginning of the cursor.
D0 indicates the deletion of content from the current cursor to the beginning of the cursor.
y$ represents the copy from the current cursor to the end of the line at which the cursor is located.
d$ means to delete the content from the current cursor to the end of the line.
Move:
W (e) Move the cursor to the next word.
b move the cursor to the previous word.
0 move the cursor to the beginning of the bank.
^ Move the cursor to the character at the beginning of our line.
$ move the cursor to the end of the bank.
H move the cursor to the first line of the screen.
M moves the cursor to the middle line of the screen.
L MOVE the cursor to the tail line of the screen.
GG moves the cursor to the first line of the document.
G Move the cursor to the end of the document line.
Common:
H cursor moves to the top line of the screen
M cursor moves to the middle line of the screen
L MOVE the cursor to the last line of the screen
0 cursor moves to the beginning of the current line (note the number 0)
$ cursor moves to the end of the current line
W or W cursor moves right one word to the beginning of the word
B or b The cursor moves left one word to the beginning of the word
E or e The cursor moves right one word to the end of the word
Ctrl+u the first half screen to the file
Ctrl+d half screen to file end
Ctrl+f one screen to the end of the file
Ctrl+b one screen to the top of the file
I insert before the cursor
I insert at the beginning of the current
A after the cursor is inserted
A inserts at the end of the current line
o A new line below the current line
o A new line above the current line
R replaces the current character
R replaces the current character and its subsequent characters until the ESC key is pressed
Above is the majority of Linux shortcut keys, looking at a lot, with more familiar.
Reference: http://www.xitongzhijia.net/xtjc/20150112/34549.html
Introduction to Linux endpoints and vim shortcuts