Shell Shortcut
Some useful bash shortcut for me.
key | method |
---|---|
Ctrl + a | Move to the beginning of the line |
Ctrl + e | Move to the end of the line |
Ctrl + u | (bash) Clear the characters on the line before the current cursor position |
Ctrl + u | (zsh) If you’re using the zsh, this will clear the entire line |
Ctrl + k | Clear the characters on the line after the current cursor position |
Ctrl + w | Delete the word in front of the cursor |
Ctrl + r | Search history |
Ctrl + g | Escape from search mode |
Ctrl + - | Undo the last change |
Ctrl + s | Stop output to screen |
Ctrl + q | Re-enable screen output |
Ctrl + c | Terminate/kill current foreground process |
Ctrl + z | Suspend/stop current foreground process |
Alt + d | Delete the word after the cursor |
Ctrl + l | Clear screen |
Ctrl + j | Sent Enter |
Ctrl + j | Delete one charater before cursor |
Last modified on 2023-11-01