Skip to main content
stinky.blog

bash shortcuts

Ctrl #

Shortcut Description
Ctrl + D End of file
Ctrl + C Interrupt a command
Ctrl + Z Suspend a command
Ctrl + A Move to start of line
Ctrl + E Move to end of line
Ctrl + K Cut text to end of line
Ctrl + U Cut text to start of line
Ctrl + Y Paste the last cut text
Ctrl + R Search history backwards
Ctrl + L Clear the screen

Alt #

Shortcut Description
Alt + b Move back one word
Alt + f Move forward one word
Alt + d Delete word right of the cursor
Alt + Backspace Delete word left of the cursor
Alt + < Move to the beginning of the history
Alt + > Move to the end of the history
Alt + t Swap the current word with the previous
Alt + u Uppercase word from cursor to end of word
Alt + l Lowercase word from cursor to end of word
Alt + c Capitalize the word
Alt + r Revert any changes to a command you've pulled from history