Run mkdir lab, then touch lab/delete-me.txt.
mkdir labtouch lab/delete-me.txt
Remove a single lab file and learn why wildcards, root, and force deletes are blocked.
Files and pathstouchrmls
Click any instruction for the command details, the why, and the common mistake to avoid.
Run mkdir lab, then touch lab/delete-me.txt.
mkdir labtouch lab/delete-me.txt
Run rm lab/delete-me.txt.
rm lab/delete-me.txt
Run rm -rf / and notice it is refused.
rm -rf /
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.
Practice naming one safe target instead of broad delete patterns.
Create lab/delete-me.txt first, then remove that exact path.
Real rm mistakes can be destructive; the lab teaches narrow targets.
ls [-la] [path]
List lab files and folders.
touch <file>
Create an empty file.
rm <file>
Remove one lab file with safeguards.
lsof
Show simulated files and sockets opened by services.