Mission 76

Temporary directory concept

Inspect simulated /tmp and keep scratch work inside home.

Permissions and users
7 minutes Admin Lesson 76 of 360
statlsmkdir
Lesson 76 of 360 0/360 lessons 0/17 missions Permissions and users · 7 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 7 minutes

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

Inspect tmp

Run stat /tmp.

stat /tmp
List tmp

Run ls -la /tmp.

ls -la /tmp
Create home scratch

Run mkdir lab/tmp-note.

mkdir lab/tmp-note
Lesson support

What to notice while you play.

Objective

Recognize /tmp without using it for unsafe cleanup practice.

Hint

Inspect /tmp, then create a home scratch directory.

Why it matters

Shared temp paths are easy places to make cleanup mistakes.

Common mistakes
  • Deleting from shared temp without ownership checks.
  • Assuming /tmp behaves like home.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

mkdir <name>

Create a folder.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.