Protected paths
Try a blocked system delete and inspect the protected file.
Understand the pattern
Safety controls matter when teaching destructive commands.
rm- Remove the named file from the virtual workspace. The training root and system trees are guarded.
Simulator protections are not a promise that a real shell will protect the same target.
stat- Inspect a file or directory metadata record, including ownership, permissions, and size.
Metadata and file contents answer different questions.
whoami- Print the effective user name.
An elevated command can run with a different effective identity from the normal shell.
Worked example and expected result
$ rm /etc/passwdSystem paths are protected. Remove files only inside /home/learner.
Exit status: 1. This nonzero result is an expected part of this exercise.
$ stat /etc/passwdPath: /etc/passwd Type: file Mode: -rw-r--r-- Owner: root Group: root Size: 147 bytes
Exit status: 0. The command completed successfully in the training fixture.
$ whoamilearner
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: Group collaborationTry 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.