End of input: the shortcut in both apps
On Mac it is usually Ctrl+D (2 of 2 apps); on Windows it is usually Ctrl+D (2 of 2 apps); on Linux it is usually Ctrl+D (2 of 2 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| BashEnd of input; exits the shell on an empty line · Empty line | CtrlD | CtrlD | CtrlD |
| Claude CodeExit Claude Code · Prompt is empty | CtrlD | CtrlD | CtrlD |
How the apps compare
- Mac: every app here uses CtrlD.
- Windows: every app here uses CtrlD.
- Linux: every app here uses CtrlD.
Where and when it works
- Bash (Empty line).
- Claude Code (Prompt is empty).
Learn it by pressing it: Bash shortcuts practice or Claude Code shortcuts practice.