| Action | Shortcut | Description | | ------------------------------- | ----------------- | -------------------------------- | | Delete word before cursor | `Ctrl + W` | Deletes one word at a time | | Delete word before cursor (alt) | `Option + Delete` | Alternative way to delete words | | Delete to start of line | `Ctrl + U` | Deletes everything before cursor | | Delete to end of line | `Ctrl + K` | Deletes everything after cursor | | Move to start of line | `Ctrl + A` | Jump to beginning | | Move to end of line | `Ctrl + E` | Jump to end | | Move forward one word | `Option + F` | Navigate words right | | Move backward one word | `Option + B` | Navigate words left | | Clear entire screen | `Ctrl + L` | Clears terminal window | | Paste deleted text | `Ctrl + Y` | Pastes text from kill ring | | Cancel current command | `Ctrl + C` | Stops running command | | EOF / Exit | `Ctrl + D` | Exit shell when line is empty | | Search command history | `Ctrl + R` | Search through previous commands | | Clear current line | `Ctrl + U` | Removes entire current line | #computing #cheatsheet #programming