The Practice Room / Get to Know Your Computer / Episode 4

Get to Know Your Computer

Every folder is a room: mkdir and cd

Your computer is a building full of rooms. Type cd to see which one you are in, and mkdir to build a new one. It prints nothing on success.

By MstimajPublished 9 October 20262 min read2 readsLevel Start HereTool Claude Code

Sign in to save your place and mark this done. Free, no card.

The building and the rooms

Your computer is a building full of rooms. Every folder is a room, and the terminal is always standing in exactly one of them.

That is why the first thing you ever type is a question about location. Before you can make something or move something, you have to know where you are.

Do it yourself

  1. Type cd on its own and press enter. It tells you which room you are standing in.
  2. Type mkdir, a space, and a name. For example: mkdir education-center
  3. Press enter. It will look like nothing happened.
  4. Type cd, a space, and the same name. You have walked in.
  5. Type cd on its own again. The answer has changed.

Four words, and they are all about where you are standing

cdgo inwalk into a room
→
mkdirbuildadd a room
→
dir / lslook roundwhat is in here
→
cd ..step backout to the hallway

Every one of them is about position. The terminal always has you standing somewhere.

What the words mean

mkdir is short for make directory. Directory is the older word for folder, and it survives in commands long after the rest of the world moved on.

cd is change directory. On its own it tells you where you are. Followed by a name, it walks you there.

Nothing happening is success

When you ran mkdir, the terminal said nothing at all. That is what success looks like here, and it is the single most disorienting thing about the first hour.

The terminal only speaks up when something goes wrong. Silence means it did what you asked.

Check yourself

What does mkdir stand for?

Make directory. Directory is the older word for folder.

You ran a command and nothing printed. What happened?

It worked. The terminal only reports problems, so silence is the normal result of success.

What is the difference between cd on its own and cd with a name after it?

On its own it tells you where you are. With a name it walks you into that room.

When it goes wrong

No such file or directory. The room you named is not in the room you are standing in. Type cd on its own to see where you are.

A name with a space in it behaves oddly. Use a hyphen instead, as in education-center, or wrap the name in quotes.

Words used here

Terminal

What she says in the film

Your computer is a building full of rooms. Every folder is a room, and the terminal is always standing in one of them.

Type c d on its own and press enter. It tells you which room you are standing in right now.

Type m k d i r, a space, and a name. m k d i r means make directory. I am going to build one called education center.

It will look like nothing happened. That is what success looks like here. The terminal only speaks up when something goes wrong.

Now type c d, a space, and the same name. You just walked in.

Type c d on its own again. The address ends with your new room.

Next time, we open the file manager and find the room you just built.

That is your terminal tip for today.

No permission required.

Next walkthroughFind the room you just built
On your machineWant this set up on your own computer, with your own files?

Book a session and we do it together on a call.

Book an hour

Ask what did not make sense

Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.

Comments are read before they appear.

The newsletter

Get the next walkthrough.

One email when something goes up. The argument, the film and the term, nothing else. One click to leave.

Have a question now? Ask Mstimaj, she knows the archive.