Skip to content
zero2vibecodelearn vibe coding
Level 0 · It's just a text box 5 min Reviewed by the author · Aug 5, 2026

What a terminal actually is

A terminal is a text box that runs programs. Nothing more mysterious than that — and it is where every AI coding agent lives.

Level 0 · 0 / 4 lessons0%

Open a terminal and you get a mostly empty window with a blinking cursor. No buttons, no menus, no hints. That emptiness is the only genuinely hard thing about it.

Here is the whole idea:

you type the name of a program
you press Enter
the program runs and prints its answer

That is it. A terminal is a text box that runs programs.

Why it looks scary and isn't

A graphical app shows you what you can do. Every feature is a button somewhere, so you can find things by poking around.

A terminal shows you nothing. You have to know the name of the thing you want. That is a different problem from “this is advanced” — it is the difference between browsing a menu and ordering from memory. Twenty or so names cover almost everything a beginner does, and you already learned a much bigger vocabulary to use a phone.

Which leaves the real fear: what happens when you get a name wrong. You will find out for yourself before the end of this page.

Note

Two words get used interchangeably and it is worth untangling them once. The terminal is the window. The is the program running inside it that reads what you type and decides what to do — usually one called bash or zsh. In practice people say “the terminal” for both, and so will this course.

Quick check

Someone says 'run it from the shell'. What are they asking you to do?

Why this matters right now

Every serious AI coding tool is a terminal program. You start Claude Code by typing claude. Codex, Gemini CLI, and most of what comes next work the same way. The agent then does its own work in that same terminal — creating files, running tests, committing code.

Which means two things. First, you need the terminal to start the agent at all. Second, and more importantly, you need to be able to read what the agent is doing. An agent that runs rm -rf build in front of you is either cleaning up or destroying something, and the only way to tell is to understand the command.

Tip

You are not learning the terminal to become a systems administrator. You are learning it so that when an agent shows you a command, you know whether to say yes.

Quick check

An AI agent proposes to run a command you have never seen. What is the useful skill here?

What you are typing into for the rest of this course

The black box beside these lessons is a simulator. It behaves like a real Unix shell for everything this course teaches, and it runs entirely inside your browser tab.

It is an imitation, not a real machine. Nothing you type reaches your computer, your files, or the internet. Commands like git and npm print believable output without actually doing anything. That is deliberate: it means you can run the genuinely dangerous commands here first, get the reflex, and meet them on a real machine already knowing what they do.

Important

The flip side of a safe sandbox: the mistakes it forgives, a real terminal will not. When a lesson says a command is permanent, believe it — the simulator is being polite, your laptop will not be.

Quick check

What happens to your actual computer when you type a command in this course's terminal?

Try it: get it wrong on purpose

Since nothing here can be harmed, let’s use that. The quickest way to stop being afraid of the terminal is to try to break it and find out that you can’t.

Type a word that is not a program. Use banana — it is definitely not one:

banana

Press Enter. The terminal answers:

banana: command not found

That is the entire disaster. The shell went looking for a program called banana, did not find one, and stopped there. Nothing ran, so nothing could go wrong. The folder is exactly as it was, and the prompt is back, waiting for your next line.

Underneath, the simulator adds a friendly note pointing you at the list of commands that do exist — asking the terminal what it knows is a lesson of its own, a little further on.

Try your own word too, if you like. Just know that a few you might reach for — sudo, vim, make — are real programs, so those will answer instead of complaining. That is worth knowing on its own: the computer recognises more words than you would guess, and it only ever objects to the ones it has never heard of.

Tip

This one is not the sandbox being generous. command not found reads the same on a real machine: the shell is telling you it could not find the program, which it worked out before anything happened. A name the computer does not recognise is the safest mistake in computing.

What comes next

You have made the terminal say something. The next three lessons make it say something useful: how to read the line it shows you, how to run your first real command, and how to ask the terminal itself what a command does.

Check your understanding

Answered 0/3
Mode:

What is a terminal, in one sentence?

Why does a beginner learning AI coding tools need the terminal?

You type a word the terminal has no program for. What happens?

Finish the task in the terminal and answer the questions to complete the lesson.

📝 My notes

Saved automatically in this browser · shows up on the Notes page.

Task

Get something wrong on purpose: type a word that is not a program and read what comes back.

Tab complete · history · Ctrl+L clear · help commands

  • Not done: The terminal tells you it does not know that word

Lesson Q&A

What is a terminal, in one sentence?

A text box where you type the name of a program and it runs — You type a name, press Enter, a program runs and prints its answer. That is the whole idea.

Why does a beginner learning AI coding tools need the terminal?

Because the coding agents run as terminal programs, so that is where you talk to them — Claude Code, Codex and Gemini CLI are all programs you start from a terminal. No terminal, no agent.

You type a word the terminal has no program for. What happens?

It prints "command not found" and nothing else happens — No program with that name means there is nothing to run. The terminal says so and hands you back the prompt.

Someone says 'run it from the shell'. What are they asking you to do?

The shell is the program reading your typed commands. 'From the shell' just means 'type it in the terminal'.

An AI agent proposes to run a command you have never seen. What is the useful skill here?

You will never know every command. Reading well enough to spot 'this deletes things' or 'this only lists things' is the skill that pays.

What happens to your actual computer when you type a command in this course's terminal?

It is a pure in-browser imitation. Break whatever you like in here — that is what it is for.

Move between lessons with · search with ⌘K

Written and reviewed by Mikhail Kuzmitskii