Mission 44

Script metadata

Inspect and update simulated script permissions.

Files and paths
8 minutes Core Lesson 44 of 360
statchmod
Lesson 44 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.

Inspect deploy script

Run stat scripts/deploy.sh.

stat scripts/deploy.sh
Set executable mode

Run chmod 700 scripts/deploy.sh.

chmod 700 scripts/deploy.sh
Inspect again

Run stat scripts/deploy.sh.

stat scripts/deploy.sh
Lesson support

What to notice while you play.

Objective

Practice checking a script before changing its mode.

Hint

Use stat before and after chmod.

Why it matters

Executable files deserve extra scrutiny.

Common mistakes
  • Making a file executable without reading it.
  • Confusing mode labels with script safety.
Reference

Commands in this lesson.

chmod <mode> <path>

Change a simulated numeric permission mode.

stat <path>

Show lab file details.