12Terminal: the moves you'll use every day

Start

  1. 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? Type cd , 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? Type cd , drag the folder in, press Enter.

    Go to the folder and start Claude
    cd ~/Documents/claude-practice
    claude
    Go to the folder and start Claude
    cd ~\Documents\claude-practice
    claude
    1. 1Terminal prompt
    2. 2Terminal
    Claude Code running in the terminal, with the cursor on the prompt line.
  2. Step 2 of 14

    Type /help, press Enter, read the list, then press Esc.

    List the commands
    /help
  3. 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 on is back.

  4. 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
  5. Step 5 of 14

    Type this prompt by hand; after @inv, press Tab.

    Tab fills in inventory.md for you. In Auto, Claude makes the edit without asking.

    Type this into the session
    Add one line at the end of @inventory.md that says: Reviewed in the terminal.
  6. 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 session
    Write a 2,000-word report about every file in this folder and save it as report.md.
  7. Step 7 of 14

    When Claude is done and the box is empty, press Esc twice.

    Pick your inventory.md prompt, then Restore code and conversation (code means your files).

    Open the rewind menu
    /rewind
    1. 1Restore code and conversation
    2. 2Rewind
    3. 3Prompt to restore
    The Rewind menu: pick Restore code and conversation.
  8. 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
  9. Step 9 of 14

    Type /model, pick Sonnet 5.5 with the arrows, press s.

    s switches for this session only. On Pro, skip Fable: it uses paid usage credits.

    Open the model picker
    /model
    1. 1s to use this session only
    2. 2Model list
    3. 3Select model
    The Select model list after typing /model.
  10. 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
    1. 1Current session
    2. 2Current week (all models)
    3. 3Current week (Fable)
    4. 4Usage
    The /usage screen with bars for this session and this week.
  11. 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
  12. Step 12 of 14

    Type /resume, select practice-day-1, then press Enter.

    Use the arrow keys to select it. Space previews it first.

    Pick a conversation to resume
    /resume
  13. Step 13 of 14

    Type exit, press Enter, then run this command.

    It reopens the latest conversation in this folder. Type exit again when you have seen it.

    Reopen the latest conversation here
    claude --continue
  14. 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 setup
    claude update
    claude doctor
  15. 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?

    Read more: Interactive mode: keyboard shortcuts and quick prefixes

Built by Saiaf. Questions and corrections: hello@saiaf.me