Run pwd to see the current directory.
pwd
Map the training server, learn where you are, and move through directories.
Terminal basicspwdlscdcat
Click any instruction for the command details, the why, and the common mistake to avoid.
Run pwd to see the current directory.
pwd
Run ls / to see the top-level lab folders.
ls /
Run cat /etc/hostname.
cat /etc/hostname
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Understand where commands are running before changing anything.
Start with pwd, then compare ls with ls /.
Good operators orient themselves before they edit, delete, or restart anything.
pwd
Print the current working directory.
ls [-la] [path]
List lab files and folders.
cd [path]
Change directories inside the lab filesystem.
cat <file>
Print text file contents.
lsof
Show simulated files and sockets opened by services.