Shell Shortcut

Some useful bash shortcut for me.

keymethod
Ctrl + aMove to the beginning of the line
Ctrl + eMove 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 + kClear the characters on the line after the current cursor position
Ctrl + wDelete the word in front of the cursor
Ctrl + rSearch history
Ctrl + gEscape from search mode
Ctrl + -Undo the last change
Ctrl + sStop output to screen
Ctrl + qRe-enable screen output
Ctrl + cTerminate/kill current foreground process
Ctrl + zSuspend/stop current foreground process
Alt + dDelete the word after the cursor
Ctrl + lClear screen
Ctrl + jSent Enter
Ctrl + jDelete one charater before cursor

Last modified on 2023-11-01