1/10

Moving around · Where am I?

Say hello to your terminal

A terminal is a text conversation with your computer. You type a command, press Enter, and the computer answers with text. This one runs inside your browser tab, so nothing you type here can harm your real computer.

The line where you type starts with a prompt: learner@shellstreak:~$. It means user learner, on the computer shellstreak, ready for a command (that's what the $ says).

Your first command is pwd, short for print working directory. A directory is another word for a folder. Your working directory is the folder you're in right now: every command you run works there unless you say otherwise.

How to type it: the three letters pwd, then Enter.

Worked example

learner@shellstreak:~$ pwd
/home/learner

What the output means

  • /home/learner is the full address of the folder you're in. Read it left to right: start at the very top of the disk (the first /), go into the folder home, then into the folder learner.
  • That folder is your home folder. Every user has one, named after them, and a new terminal always starts there.

Common mistakes

  • Typing PWD in capitals. Commands care about upper and lower case: pwd works, PWD doesn't.
  • Forgetting to press Enter. Nothing happens until you do.
  • Expecting pwd to change something. It only tells you where you are.

Tap Run to try it, or type pwd in the terminal and press Enter.

Try it:pwd
learner@shellstreak: ~
Starting your practice shell…

You can also type in the terminal yourself. Try anything: you can't break it.

Go deeper: Basic terminal commands for beginners