Who Am I and Where Am I?
Concept & Overview
Imagine walking into a massive, dark library with millions of books, but you have no map, and you can't even remember your own name tag. Before you can look up anything, you need to know who you are and where you are standing. In the Linux shell, we start with the exact same questions!
- The whoami command prints the username you are currently logged in as.
- The pwd (print working directory) command acts like a GPS, showing you the exact folder path where you are currently standing.
whoami to see your active username, and then run pwd to print your current folder location in the filesystem.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
whoami | Prints active username |
pwd | Prints current working directory |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Run the "whoami" command
- ○Run the "pwd" command
Ready to complete Quest 1?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.