12Terminal: the moves you'll use every day
Start
-
Lesson 12 · 15 min · 14 steps
Claude Code terminal commands you'll use every day
What you get Full control of Claude in the terminal: stop it, undo it, pick up later
Before you start
Steps in this lesson
- Open Terminal with Cmd+Space, then paste these two lines.Open PowerShell with Win+X, then paste these two lines.
- Type
/help, press Enter, read the list, then press Esc. - Press Shift+Tab until the status bar reads
⏸ plan mode on. - Type this line starting with
!and press Enter. - Type this prompt by hand; after
@inv, press Tab. - Send this task, then press Esc once while Claude works.
- When Claude is done and the box is empty, press Esc twice.
- Type this and press Enter to shrink the conversation.
- Type
/model, pick Sonnet 5.5 with the arrows, presss. - Type
/usage, press Enter, and read the usage bars. - Type this and press Enter to start a fresh conversation.
- Type
/resume, selectpractice-day-1, then press Enter. - Type
exit, press Enter, then run this command. - Run these two lines one at a time.
Step 1 of 14
Open Terminal with Cmd+Space, then paste these two lines.
No
⏵⏵ auto mode on? Press Shift+Tab until it shows. Folder in Google Drive? Typecd, drag the folder in, press Enter.Open PowerShell with Win+X, then paste these two lines.
No
⏵⏵ auto mode on? Press Shift+Tab until it shows. Folder in Google Drive? Typecd, drag the folder in, press Enter.Go to the folder and start Claudecd ~/Documents/claude-practice claude
Go to the folder and start Claudecd ~\Documents\claude-practice claude
- 1Terminal prompt
- 2Terminal
Claude Code running in the terminal, with the cursor on the prompt line. Step 2 of 14
Type
/help, press Enter, read the list, then press Esc.List the commands/help
Step 3 of 14
Press Shift+Tab until the status bar reads
⏸ plan mode on.Plan reads and suggests, but changes nothing. Keep pressing until
⏵⏵ auto mode onis back.Step 4 of 14
Type this line starting with
!and press Enter.A
!line runs as a normal terminal command, and its output joins the conversation.List the files from inside the session!ls
List the files from inside the session!dir
Step 5 of 14
Type this prompt by hand; after
@inv, press Tab.Tab fills in
inventory.mdfor you. In Auto, Claude makes the edit without asking.Type this into the sessionAdd one line at the end of @inventory.md that says: Reviewed in the terminal.
Step 6 of 14
Send this task, then press Esc once while Claude works.
Claude stops and keeps the work so far. Then type: Skip the report. Just tell me how many files are here.
Type this into the sessionWrite a 2,000-word report about every file in this folder and save it as report.md.
Step 7 of 14
When Claude is done and the box is empty, press Esc twice.
Pick your
inventory.mdprompt, then Restore code and conversation (code means your files).Open the rewind menu/rewind
- 1Restore code and conversation
- 2Rewind
- 3Prompt to restore
The Rewind menu: pick Restore code and conversation. Step 8 of 14
Type this and press Enter to shrink the conversation.
Claude swaps the long chat for a short summary, so it has room to keep going.
Shrink the chat, keep what matters/compact keep the file list and my decisions
Step 9 of 14
Type
/model, pick Sonnet 5.5 with the arrows, presss.sswitches for this session only. On Pro, skip Fable: it uses paid usage credits.Open the model picker/model
- 1s to use this session only
- 2Model list
- 3Select model
The Select model list after typing /model. Step 10 of 14
Type
/usage, press Enter, and read the usage bars.Skip the technical numbers on top; just read the bars at the bottom. Esc closes it.
See your plan usage/usage
- 1Current session
- 2Current week (all models)
- 3Current week (Fable)
- 4Usage
The /usage screen with bars for this session and this week. Step 11 of 14
Type this and press Enter to start a fresh conversation.
The screen clears and the old conversation is saved under that name.
Clear and name the old conversation/clear practice-day-1
Step 12 of 14
Type
/resume, selectpractice-day-1, then press Enter.Use the arrow keys to select it. Space previews it first.
Pick a conversation to resume/resume
Step 13 of 14
Type
exit, press Enter, then run this command.It reopens the latest conversation in this folder. Type
exitagain when you have seen it.Reopen the latest conversation hereclaude --continue
Step 14 of 14
Run these two lines one at a time.
The first updates Claude Code; the second checks it is set up right.
Update, then check the setupclaude update claude doctor
-
You did it
Full control of Claude in the terminal: stop it, undo it, pick up later
Take this to any task
- Open the help list firstWhen you meet a new tool, look at its list of commands first, like /help here; a quick read shows what it can do before you guess.
- Learn the few keys you use dailyIn any tool, a handful of moves, like stop, undo and switch mode, does most of the work; know those by heart and look up the rest.
- Name work you plan to come back toGive a conversation a clear name when you set it aside, like practice-day-1, so you can find and reopen it days later.
- Change a setting for now or for goodMany settings can apply to this session only or become your default; pick this session when you're trying something, and default when you'll want it every time.
Check yourself
1. Which key switches between modes like Plan and Auto in the terminal?
2. You pressed Esc twice on an empty prompt. What opens?
3. You typed /clear practice-day-1. How do you get that conversation back?
All three right. Mark the lesson as done.Read more: Interactive mode: keyboard shortcuts and quick prefixes