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 +
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 +Return to the beginning of the command line
-
Ctrl + eReturn to the end of the command line
-
Ctrl + cCancel the command entered in the current line and repeat it to the next line.
-
Ctrl + rThe command history search prompt appears. the command is automatically matched after the characters are entered.
-
Ctrl + BReturns a character backward, which is equivalent to a left direction key.
-
Ctrl + fEnter a forward character, which is equivalent to a right arrow key.
-
Alt + BJump one word backward
-
Alt + fEnter a Word Forward
-
Ctrl + pThe previous input command is equivalent to the up arrow key.
-
Ctrl + nTurning down the previous input command is equivalent to turning down the direction key.
-
Ctrl + wDeletes a word from the cursor.
-
Ctrl + yPaste the last deleted word
-
Ctrl + dDeletes a character at the current cursor position.
-
Ctrl + uRemoves all characters from the cursor's current position to the beginning of the line
-
Ctrl + kDeletes all characters from the current position of the cursor to the end of the line, which is equivalent to pressing ctrl + d