Tag: will return CTR Word delete Move page ack
Move cursor
ctrl+b
: Move forward one character (backward)
ctrl+f
: Move back one character (forward)
alt+b
: Move forward one word
alt+f
: Move back one word
ctrl+a
: Move to the beginning of the line (A is the first letter)
ctrl+e
: Move to end of line (end)
ctrl+x
: Beginning of line to current cursor substitution
Edit command
alt+.
: The last parameter of the last command to paste (usually used mkdir long-long-dir
after, cd
mates with alt+.
)
alt+d
: Deletes the current cursor to the near right word start (delete)
ctrl+w
: Delete current cursor to near left word end (word)
ctrl+h
: Delete the previous character of the cursor (equivalent to BACKSPACE)
ctrl+d
: Deletes a character after the cursor (equivalent to delete)
ctrl+u
: Delete all of the cursor to the left
ctrl+k
: Delete all of the cursor to the right
ctrl+l
: Clear Screen
ctrl+shift+c
: Copy (equivalent left mouse button drag)
ctrl+shift+v
: Paste (equivalent to middle mouse button)
Other
ctrl+n
: Next command
ctrl+p
: Previous command
alt+n
: The next command (for example, enter and ls
Press ' Alt+n ') will find the command in the history ls
alt+p
: Previous command ( alt+n
similar)
shift+PageUp
: Page Up
shift+PageDown
: Page Down
ctrl+r
: Enter history to find the command record and enter keywords. Press multiple times to return to the next occurrence
Zsh
d
: Lists the previous open commands
j
: Jump to a previous directory, fuzzy match
VIM Move Cursor
b
: Move one word forward
w
: Move one word backwards
Delete
dw
: Deletes from the current cursor to the next word header
de
: Delete from current cursor to end of word
[Turn]bash shell common shortcut keys