/exit
Last updated
What is /exit?
The /exit command is a built-in utility used to safely terminate your current Claude Code session and return you to your standard terminal prompt. Unlike force-quitting the application, using this command ensures that the system performs a clean shutdown, which includes saving your conversation history and updating any local session metadata so that you can resume your work later using the claude -c flag.
Free resources to learn /exit
- Official docsBuilt-in commands
More in stage 7: Skills
/exit: common questions
Can I learn /exit in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain /exit in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this /exit tutorial for beginners?
It is lesson 58 of 109 in the free Claude Code roadmap, in stage 7, Skills. If you are new to Claude Code, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.