Tools / Keyboard Shortcuts / Terminal and Bash (readline)
Terminal and Bash (readline) Keyboard Shortcuts
12 keyboard shortcuts for Windows and Mac, grouped by task. Bash and other readline shells. On macOS, Option keys need Option as Meta..
Terminal and Bash (readline)
Bash and other readline shells. On macOS, Option keys need Option as Meta.Line editing
| Action | Windows | Mac | Save or copy |
|---|---|---|---|
| Start, end of line | Ctrl+A / Ctrl+E | Ctrl+A / Ctrl+E | |
| Back, forward one word | Alt+B / Alt+F | Option+B / Option+F | |
| Delete to end of line | Ctrl+K | Ctrl+K | |
| Delete to start of line | Ctrl+U | Ctrl+U | |
| Delete previous word | Ctrl+W | Ctrl+W | |
| Paste what you deleted | Ctrl+Y | Ctrl+Y | |
| Clear the screen | Ctrl+L | Ctrl+L | |
| Search history | Ctrl+R | Ctrl+R | |
| Cancel the command | Ctrl+C | Ctrl+C | |
| End of input or exit | Ctrl+D | Ctrl+D | |
| Suspend the job | Ctrl+Z | Ctrl+Z | |
| Run the last command again | !! then Enter | !! then Return |
More developer
Checked 2 Dec 2026. Product names belong to their owners; this is an independent guide.
How to use it
- Search by what you want to do, like "new tab" or "bold".
- Switch between Windows and Mac keys, or show both.
- Save the ones you use and print a cheat sheet for one app.
Questions
Are these shortcuts up to date?
We checked them on 2 Dec 2026 against current versions of each app. Apps change shortcuts from time to time, and many apps show their own list (often with Ctrl+/ or ?).
What do Cmd and Option mean?
On a Mac keyboard, Cmd is the Command key and Option is the Alt key. Ctrl is the Control key on both Windows and Mac.
Can I print a cheat sheet?
Yes. Pick one app and press Print cheat sheet. The page prints only the shortcuts, sized for paper.