‹ Start From Zero Lesson 3 of 21
Contents Lesson 3 of 21

3 min read · foundations

The terminal is a way to ask questions

The black window is not for experts. It is a place where you type the name of a thing and it happens — and it is how every tool in this track is run.

Four commands is most of it

pwd          where am I
ls           what is here          (dir on Windows cmd)
cd folder    go into that folder
cd ..        go back up

That is genuinely most of daily use. You are always somewhere — a folder — and commands act on where you are. Getting lost is the beginner's whole difficulty, and pwd answers it every time.

Tab is the important key

Start typing a folder name and press Tab. It completes. This is not a nicety: it means you never mistype a path, which removes an entire category of confusing error.

Reading what comes back

A command that worked usually says little or nothing. Silence is success. That feels wrong at first — you want a confirmation — but a tool that printed "done!" after every action would be unusable in a script.

A command that failed says so, at length. Three you will meet:

  • command not found — the program is not installed, or the terminal is stale.
  • No such file or directory — you are not where you think. Run pwd.
  • permission denied — the file is protected, or you are somewhere you should not be writing.

Ctrl-C stops things

Some commands keep running until told otherwise — a web server, for example, which you will start in unit 3. Ctrl-C ends it. Knowing that stops the specific panic of "the terminal won't let me type any more".

Why not just use the mouse

Because commands are repeatable and quotable. You can put one in a document, hand it to somebody, and it does the same thing on their machine. Every instruction in this academy is a command for exactly that reason, and it is also why an assistant can help you: it can write a command, and it cannot click your mouse.

Try it now

Make a folder for this course, move into it, and confirm with pwd that you are there. Then, from that folder, run ls in an empty directory and notice that it prints nothing at all. That nothing is your first correct output.