Claude Code for Beginners: The Terminal Basics You Need
New to the terminal and want to use Claude Code? The dozen commands and habits that actually matter, explained plainly, plus safety tips for beginners.
You need far less terminal knowledge to use Claude Code than you think. Learn to open a terminal, move into a folder with cd, see where you are with pwd and ls, start Claude with claude, and stop things with Ctrl+C. That is enough for day one, because once Claude Code is running you talk to it in plain English and it runs the other commands for you. This guide covers those basics, the handful of Claude Code keys worth knowing, the safety habits that keep beginners out of trouble, and how to make the terminal a place you do not mind spending time.
If you came to Claude Code from vibe coding, chat apps or no-code tools, the blinking cursor can feel like a test you did not study for. It is not. Think of the terminal as a text message thread with your computer.
The mental model: one folder at a time
A terminal is always "standing" in one folder, called the working directory. Every command runs there. Claude Code works the same way: it can see and edit the files in the folder you start it in, and below it. So the most important beginner skill is simply getting to the right folder before you type claude.
The dozen commands that matter
| Command | What it does | Example |
|---|---|---|
pwd |
Shows which folder you are in | pwd → /Users/sam/code/my-app |
ls |
Lists files in the current folder | ls |
cd folder |
Moves into a folder | cd code/my-app |
cd .. |
Moves up one folder | cd .. |
cd ~ |
Goes to your home folder | cd ~ |
mkdir name |
Makes a new folder | mkdir my-first-app |
open . |
Opens the current folder in Finder (Mac) | open . |
claude |
Starts Claude Code in this folder | claude |
claude -c |
Continues your most recent conversation | claude -c |
| Ctrl+C | Stops whatever is running | Press it once or twice |
| Up arrow | Repeats a previous command | Press, then Enter |
| Tab | Autocompletes folder and file names | Type cd co then Tab |
Two tricks save beginners hours. First, drag a folder from Finder onto the terminal window and its full path appears, so you can type cd and drop the folder instead of spelling it out. Second, Tab completion: type the first few letters of a folder name and press Tab.
Your first session, start to finish
cd ~
mkdir my-first-app
cd my-first-app
claude
Then just ask, in plain words: "Make a simple web page that shows a to-do list I can add items to. Tell me how to open it." Claude will propose creating files and ask permission. Read what it wants to do, approve it, and follow its instructions to open the result. Congratulations, that was the hard part.
If you have not installed Claude Code yet, our how to install Claude Code on Mac guide takes about five minutes.
Claude Code keys worth knowing
- Enter sends your message. Shift+Enter (or Ctrl+J) adds a new line without sending. If Shift+Enter sends instead, see the Shift+Enter fix.
- Esc interrupts Claude mid-task so you can redirect it. Press it whenever it heads the wrong way; nothing breaks.
- Esc twice lets you jump back to an earlier message and edit it.
- Shift+Tab cycles permission modes, including plan mode, where Claude explains what it would do before doing anything. Plan mode is brilliant for beginners. More in our plan mode guide.
/helplists commands./clearstarts a fresh conversation. Type/to see everything.
Safety habits for beginners
Use git from day one. Ask Claude: "Set up git for this project and commit everything." After that, whenever things are working, say "commit this." If a later change breaks everything, you can say "go back to the last commit." This one habit removes most of the fear.
Read permission prompts. Claude asks before editing files or running commands. Read them, especially anything with rm (delete) or anything touching folders outside your project. Our permission modes guide explains the options.
Do not start Claude in your home folder. Always cd into a project folder first, so Claude only sees that project.
Ask Claude to explain. "What did that command do?" and "Explain this error like I am new to this" are completely legitimate prompts. It is the best tutor you will ever have.
Common beginner errors, decoded
command not found: claude: Claude Code is not installed, or you need to open a new terminal window after installing.No such file or directory: you are in the wrong folder. Runpwdandlsto look around.- Nothing happens and the cursor just sits there: something is still running. Wait, or press Ctrl+C.
Permission denied: you are trying to change something your user cannot. Do not reach forsudo; ask Claude why.
Make the terminal feel less hostile
The default Mac Terminal is a white or black box with tiny text. It works, but it does nothing to make you want to be there. A few easy upgrades:
- Bigger font. Cmd+Plus in almost every terminal. Our best font size for coding post has sensible numbers.
- A theme you like. Dark, light, whatever is easy on your eyes. Claude Code also has its own
/themecommand. - A terminal that shows you what is going on.
That last one is why we built MOLTamp. It is a skinnable terminal shell made for Claude Code on Mac. You can make it look like anything from the skins gallery in one click, tabs flag which Claude session needs you, a desktop notification tells you when Claude finishes while you are in another app, and side panels show your git status so "did I commit?" is never a mystery. Shift+Enter just works. It is free to use with every feature working; a one-time $10 license removes a recurring popup. Download MOLTamp if the default Terminal is putting you off.
When you outgrow the basics, our Claude Code tips and tricks and the best terminal for Claude Code round-up are good next stops.
FAQ
Do I need to know how to code to use Claude Code? No, but it helps to learn as you go. Claude Code writes and runs the code; you describe what you want and review what it does. Asking it to explain its work is the fastest way to learn.
What terminal commands do I need for Claude Code?
Mostly cd to move into your project folder, ls and pwd to look around, claude to start, and Ctrl+C to stop things. Claude runs most other commands for you.
Can Claude Code break my computer? It asks permission before editing files or running commands, and only works in the folder you start it in. Read the prompts, avoid running it from your home folder, and use git so you can undo changes.
How do I stop Claude Code?
Press Esc to interrupt the current task, or Ctrl+C (twice) to exit Claude Code entirely. Type claude -c to pick up where you left off.
Is there a Claude Code version without the terminal? Yes. The Claude desktop app runs Claude Code in a regular window. Our Claude Code GUI guide compares the options.