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

Reading the prompt

The short line before your cursor is not decoration — it tells you who you are and where you are standing.

Level 0 · 0 / 4 lessons0%

Before your cursor there is a short line of text. It is called the , and it is the terminal telling you three things without being asked.

A typical one looks like this:

~ $

Small, but it says: you are in your home folder, and the terminal is ready for input.

The two halves

Everything before the cursor is the terminal talking to you. Everything after it is yours.

That sounds obvious until you paste a command from a tutorial and accidentally include the $. The dollar sign is not part of the command. It is a punctuation mark meaning “your turn”.

Note

The exact shape differs by machine. On a Mac you often see user@laptop ~ % or ~ $. On Windows it looks like C:\Users\user>. Different paint, same three facts: who, where, ready.

Quick check

A tutorial shows the line `$ ls`. What do you actually type?

The most useful part: where

The ~ is shorthand for your home folder — the folder that belongs to you, where your documents and projects live. When you open a terminal, that is where you start.

Move somewhere else and the prompt follows you:

~ $
~/projects $
~/projects/my-site $

You have not run anything yet, but you can already see the single most common source of beginner errors disappearing: “I ran the right command in the wrong folder.” The prompt tells you the folder for free, on every single line.

Quick check

Your prompt reads `~/projects/my-site $`. Where are you standing?

Try it

The terminal knows who you are. Ask it.

Type this and press Enter:

whoami

It answers with your username. In this simulator that is user, which is also why your home folder is /home/user.

Tip

whoami is a good first command for a reason: it takes no arguments, changes nothing, and cannot go wrong. When you land in an unfamiliar terminal and want to check that it is actually listening, this is the harmless thing to type.

Quick check

Why is whoami a safe command to try in an unfamiliar terminal?

Check your understanding

Answered 0/2
Mode:

In the prompt `~ $`, what does the tilde mean?

What is the part of the prompt after the dollar sign for?

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

Ask the terminal who you are: type whoami and press Enter.

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

  • Not done: Run whoami
  • Not done: The terminal answers with your username

Lesson Q&A

In the prompt `~ $`, what does the tilde mean?

`~` is shorthand for your home folder, so `~ $` means "you are standing in your home folder".

What is the part of the prompt after the dollar sign for?

Everything before the cursor is the terminal telling you something. Everything after it is yours to type.

A tutorial shows the line `$ ls`. What do you actually type?

The $ is the prompt the tutorial's author had on screen. Copying it in gives you a 'command not found' error.

Your prompt reads `~/projects/my-site $`. Where are you standing?

Read it left to right as a path: home, then projects, then my-site. The last name is where you are.

Why is whoami a safe command to try in an unfamiliar terminal?

Commands split roughly into ones that report and ones that change things. whoami is purely a report.

Move between lessons with · search with ⌘K