Linux system operation, most of them do not use the shortcut key habits, feel the mouse point is convenient, in fact, in some operations, the use of shortcut keys can save a lot of time, the following gives you a detailed introduction of the Linux system shortcut keys, for your reference only.
History Command Query
· !! Executes the previous command
!$ represents the last string of the previous command
!num the num command in the Execution History command
!-num to execute the countdown num command in the history command
· !? String? Executes the most recent command containing string strings
. Ctrl + R lookup (historical command). History|grep
. CTRL + P previous↑ Previous command
. CTRL + N next↓ next command
· ESC +. Displays the last string of the previous command
Cursor movement
. Ctrl + a switches to the command line start
. Ctrl + E To switch to the end of the command line
. CTRL + B cursor moves the position of one symbol to the left
. CTRL + F cursor moves the position of one symbol to the right
Cut paste
. Ctrl + u Clear (cut) the contents of the cursor before
. Ctrl + K Clears (cuts) the contents after the cursor
. Ctrl + Y paste
. ESC + F Moves the cursor to the end of the word
. ESC + B Moves the cursor to the beginning of the word
· Ctrl + H deletes the previous character
Other types
. Ctrl + C terminates the current command or script
. Ctrl + D exits the current shell, which is equivalent to exit logout, deleting the character after the cursor.
. Ctrl + L Clears the contents of the screen, which is equivalent to clear.
. tab all command and path completion function, generally need to press a few more
. ESC +. Reference/use last parameter (end) of previous command
#SecureCRT快捷键
. Ctrl+shift+c the command line to copy content
. Ctrl+shift+v command line paste content
#Xshell快捷键
. Shift+insert paste
. Ctrl+insert replication
This article is from the "Dotlim blog" blog, make sure to keep this source http://dotlim.blog.51cto.com/12633007/1956404
Linux command-line shortcut keys and tips