hot key |
describe |
Ctrl + k |
Delete from cursor to end of line |
Ctrl + u |
Delete from cursor to beginning of line |
Ctrl + w |
Cut one word forward from the cursor to the clipboard |
Ctrl + d |
Delete the letter under the cursor |
Alt + d |
Delete one word backward from the cursor |
Ctrl + h |
Delete the letter before the cursor |
Ctrl + t |
Swap (current word, previous word) |
Alt + t |
Swap (current letter, previous letter) |
Ctrl + u |
Delete from cursor to beginning of line |
Ctrl + y |
Paste last deleted text |
Alt + c |
Capitalize the current letter and move the cursor to the end of the word |
Everything + u |
Capitalizes from the current cursor to the suffix |
Alt + l |
Lowercase from current cursor to suffix |
Ctrl + r |
Search history commands backward |
Ctrl + g |
Exit search |
Ctrl + p |
Previous command in history |
Ctrl + n |
Next command in history |
Alt + . |
last word of previous command |
Ctrl + l |
clear screen |
Ctrl + s |
Stop output (in zsh for forward search history commands) |
Ctrl + q |
Continue output |
Ctrl + c |
Terminate current command |
Ctrl + z |
Suspend current command |
Ctrl + d |
End input (generates an EOF) |
Ctrl + a |
Move the cursor to the beginning of the line |
Ctrl + e |
Cursor moves to end of line |
Alt + b |
Move the cursor back one word (beginning of word) |
Alt + f |
Move the cursor forward one word (beginning of word) |
Ctrl + f |
Cursor advances one letter |
Ctrl + b |
Cursor moves back one letter |
Ctrl + xx |
Cursor switching between current position and beginning of line |
Ctrl + - |
Cancel |
Alt + r |
Cancel changes and restore the row in history |
Esc + t |
Swap the last two words before the cursor |
!! |
Repeat last command |
!n |
Swap the last two words before the cursor |
!n:m |
Repeat the last named parameter from n to m, for example: !:2-4 |
!n:$ |
Repeat the last named argument from n to the end, for example: !:2-$ |
!n:p |
Print the last command starting from n, for example: !:4-p |
!string |
Print last command starting from String |
!:q |
Quote the last command |
!$ |
The last parameter of the previous command |
!* |
All parameters of the previous command |
iOS - Summary of commonly used terminal command shortcut keys
Guess you like
Origin blog.csdn.net/yezuiqingxin/article/details/120367961
Recommended
Ranking