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/learnerWhat the output means
/home/learneris 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 folderhome, then into the folderlearner.- That folder is your home folder. Every user has one, named after them, and a new terminal always starts there.
Common mistakes
- Typing
PWDin capitals. Commands care about upper and lower case:pwdworks,PWDdoesn't. - Forgetting to press Enter. Nothing happens until you do.
- Expecting
pwdto change something. It only tells you where you are.
Tap Run to try it, or type pwd in the terminal and press Enter.
pwdYou can also type in the terminal yourself. Try anything: you can't break it.
Go deeper: Basic terminal commands for beginners