It is essential to use the command line in linux. Mastering the shortcut keys can help you get twice the result with half the effort. The most commonly used key should belong to the Tab key, and the function is automatically completed. It is mainly used for the command name and accessing the directory to view the file. With the command, you do not need the complete name of a single output command. You only need to enter the first few characters and then click Tab, if multiple directories exist, all of them will be prompted. when you enter a very deep directory, you can use the Tab to quickly enter. The following lists some commonly used shortcut keys.
Ctrl + a return to the beginning of the command line
Ctrl + e return to the end of the command line
Ctrl + c cancel the command entered in the current line and repeat to the next line
Ctrl + r: The command History Search Prompt is displayed. The command is automatically matched after the characters are entered.
Ctrl + B returns a character, which is equivalent to a left direction key.
Ctrl + f forward into a character, equivalent to the right direction key
Alt + B Jump One Word backward
Alt + f move forward into a word
Ctrl + p flip up the previous input command, which is equivalent to the up arrow key
Ctrl + n flip down the previous input command, which is equivalent to the downward direction key
Ctrl + w delete a word from the cursor backward
Ctrl + y paste the last deleted word
Ctrl + d delete a character at the current cursor position
Ctrl + u Delete All characters from the current position of the cursor to the beginning of the line
Ctrl + k removes all characters from the current position of the cursor to the end of the line, which is equivalent to pressing ctrl + d