Mission 46

Scratch workspace

Create a temporary lab area inside home and clean one file safely.

Files and paths
8 minutes Core Lesson 46 of 360
mkdirtouchrm
Lesson 46 of 360 0/360 lessons 0/17 missions Files and paths · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Create scratch

Run mkdir lab/scratch.

mkdir lab/scratch
Create scratch file

Run touch lab/scratch/temp.txt.

touch lab/scratch/temp.txt
Remove scratch file

Run rm lab/scratch/temp.txt.

rm lab/scratch/temp.txt
Lesson support

What to notice while you play.

Objective

Practice bounded temporary work in the lab home directory.

Hint

Use lab/scratch instead of a system directory.

Why it matters

A bounded workspace lowers cleanup risk.

Common mistakes
  • Using system paths for scratch work.
  • Deleting a folder when you meant one file.
Reference

Commands in this lesson.

mkdir <name>

Create a folder.

touch <file>

Create an empty file.

rm <file>

Remove one lab file with safeguards.