UnixDroid

Lesson 2 of 4 · 3 min

pwd — where am I?

Print the folder you are standing in.

Everything in Linux lives in a tree of folders (also called directories). The very top of the tree is written as a single slash: /.

At any moment you are standing inside one folder. To find out which, use print working directory:

pwd

Example output:

/home/student

That path tells you the route from the top of the tree: / → home → student.

Lost in the terminal? pwd is the "you are here" sign on the map.

Try it yourself

Run pwd now. Write down the path it shows — you will use it in the next lesson.

No Linux machine? Practise in the free online terminal

Quick check

Which command shows the folder you are in right now?

Need a hint?

Three letters: print working directory.

Finished this lesson?

Done lessons keep your daily streak going 🔥

0 day streak

0 lessons done

best 0 days

Log in to keep your streak on every device →