Lessons
02Moving around
0 of 11 tasks

Lesson 02 · about 12 min · 11 tasks

Moving around

Find out where you are, see what’s around you, and get anywhere on the system.

step 1 of 10

You’re always standing somewhere

Everything on your computer lives in folders inside other folders, all branching out from one folder at the very top. That top folder is called the root, and it’s written as a single slash: /.

In a terminal you’re always standing inside exactly one folder. It’s called your working directory, and commands act on it unless you say otherwise. The map above the terminal shows it: the amber marker is where you’re standing.

To print where you are, type pwd (print working directory) and press Enter.

$ pwd
/home/you

Your turn, in the terminal

  • Print your working directory
mapfolders appear as you explore
/ …
home/ …
you/◂ you are here
nowPrint your working directory
terminal
Practice terminal. Nothing you do here touches your real computer.
Type help to see what it understands.
you@terminal-mastery:~$