# Ctrl+D Shortcut

> The key that quits Claude Code when you press it twice, fast.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Ctrl+D, Ctrl+D in Claude Code, exit key

## Think of it like

It is like closing a heavy door. You push once, then push again to shut it.

## Definition

Ctrl+D is the Claude Code shortcut that ends the session. The first press shows a hint, and a second press within 800 milliseconds quits. When the prompt has text, Ctrl+D deletes the letter after the cursor instead. Like Ctrl+C, it is fixed and cannot be moved to another key.

## Example

Mia is done for the day. She presses Ctrl+D twice, and Claude Code closes.

## Why it matters

The two presses stop you from quitting by mistake.

## Common mistake

Pressing it once and waiting. The second press has to come fast.

## Three principles

- **Two fast presses.** Within 800 ms.
- **Deletes when there is text.** The next letter.
- **Cannot be rebound.** It is fixed.

## Related terms

- [Ctrl+C Shortcut](https://learn.benibix.com/term/ai/ctrl-c-shortcut)
- [/exit Command](https://learn.benibix.com/term/ai/exit-command)

## Taught in

- [Checkpoints and Control Keys](https://learn.benibix.com/learn/ai-claude-code/checkpoints-and-control-keys): Claude Code, 3/16

---

Source: https://learn.benibix.com/term/ai/ctrl-d-shortcut
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
