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

Your first command

Every command has the same shape — a name, then what it should work on. Learn it once with echo and it holds for all the rest.

Level 0 · 0 / 4 lessons0%

Time to type something and get an answer back.

The shape every command shares

Command lines all look the same:

name argument argument

The first word is the command — the name of the program you want to run. Everything after it is arguments: the material the command works on, separated by spaces.

echo hello

echo is the command. hello is the argument. Press Enter and the terminal prints:

hello

That is the whole grammar. Learn it once and every command you meet after this is just a new name and new arguments.

Quick check

In the line `mkdir photos`, which word is the command?

Spaces are the separator, so they matter

The splits your line on spaces. That is how it knows where the command ends and the arguments begin.

echo hello world

sends echo two arguments, hello and world. It prints them back joined by a space, so you see hello world and nothing looks unusual. But a command that expects exactly one argument will be confused by two.

Tip

When something you type has a space inside it — a file called my notes.txt, say — wrap it in quotes: "my notes.txt". The quotes tell the shell “this is one thing, do not split it”. A surprising share of beginner errors are one missing pair of quotes.

Quick check

You want one argument that contains a space. What do you do?

Try it

Type this and press Enter:

echo Hello, terminal

The terminal prints Hello, terminal and gives you a fresh . That fresh prompt is the terminal’s way of saying “done, next”.

Note

echo earns its keep later. In level 2 you will send its output into a file instead of onto the screen, which is how you create files with content in them without ever opening an editor.

Quick check

After a command finishes, the terminal shows a new prompt. What does that mean?

Check your understanding

Answered 0/2
Mode:

In `echo Hello`, which part is the command and which is the argument?

What does `echo` do?

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

Make the terminal say something back. Type: echo Hello, terminal

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

  • Not done: Run echo with something to print
  • Not done: The terminal prints it back

Lesson Q&A

In `echo Hello`, which part is the command and which is the argument?

The first word is always the command. Everything after it is arguments — the material the command works on.

What does `echo` do?

It prints its arguments. Boring alone, but essential later when you send that text into a file.

In the line `mkdir photos`, which word is the command?

Always the first word. mkdir is the program; photos is what you are asking it to make.

You want one argument that contains a space. What do you do?

Without quotes the shell hands the command two arguments, my and notes.txt, and it will complain about a file that does not exist.

After a command finishes, the terminal shows a new prompt. What does that mean?

No prompt means it is still running. A prompt back means it has finished, whether it succeeded or not.

Move between lessons with · search with ⌘K