Environment variables
Inspect a simulated environment without exposing real browser or server secrets.
Understand the pattern
Many CLI tools read configuration from the environment.
env- Inspect shell environment variables. Assignments and export affect the training environment, never your host shell.
Environment output may expose real credentials outside the simulator.
echo- Write simple text to standard output. Prefer printf when exact formatting matters.
Redirection can overwrite an existing file before the command runs.
pwd- Print the directory that relative paths currently resolve from.
A relative path is interpreted from the working directory, not necessarily the home folder.
Worked example and expected result
$ envHOME=/home/learner USER=learner SHELL=/bin/bash PATH=/usr/local/bin:/usr/bin:/bin PWD=/home/learner
Exit status: 0. The command completed successfully in the training fixture.
$ echo PATH is fakePATH is fake
Exit status: 0. The command completed successfully in the training fixture.
$ pwd/home/learner
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: System identityTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.