Temporary workspaces
Create bounded temporary files and directories for disposable work.
Understand the pattern
Using temporary paths instead of cluttering durable locations helps operators explain what they know before they change anything.
mktemp- Create a uniquely named scratch location in the virtual filesystem.
Do not guess a temporary filename when isolation matters.
ls- List directory entries; -a includes hidden names and -l adds ownership and permission detail.
A listing is not proof that you can read or modify every listed file.
Worked example and expected result
$ mktemp lab/note.XXXXXX/home/learner/lab/note.000001
Exit status: 0. The command completed successfully in the training fixture.
$ mktemp -d lab/work.XXXXXX/home/learner/lab/work.000001
Exit status: 0. The command completed successfully in the training fixture.
$ ls -la lab--rw------- learner learners 0 note.000001 ddrwxr-xr-x learner learners dir work.000001
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: Sorted inventory comparisonTry 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.