Bash Orientation: PWD Anchors
Use pwd as a fast orientation anchor so every follow-up command runs from the correct location.
Start Interactive LessonBash Orientation: PWD Anchors
pwd is the lowest-friction safety check in Bash. Before you create, move, or delete anything, print the current path so you know exactly where commands will apply.
Command to Practice
pwd
Expected Terminal Signal
In this course sandbox, the command should resolve to your working root:
/Users/Student
Why This Matters
Path mistakes are one of the fastest ways to break confidence in the terminal. Running pwd first prevents "wrong folder" errors and makes every later command intentional.
Common Mistakes
- Assuming your shell stayed in the same directory after earlier steps.
- Running file commands after a failed
cdwithout re-checking location. - Treating path awareness as optional during incident work.
Practice Extension
Run this short loop three times:
pwd
cd Documents
pwd
cd ..
pwd
After a few repetitions, path-checking becomes automatic and dramatically reduces command anxiety.
References
These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.