Mission 311

File type inspection

Identify files, directories, links, and text before acting on them.

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

Identify a text file

Run file README.txt.

file README.txt
Identify a directory

Run file lab.

file lab
Compare detailed metadata

Run stat README.txt.

stat README.txt
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with identifying filesystem object types.

Hint

Start with file README.txt, inspect the result, then continue in order.

Why it matters

Identifying filesystem object types helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves identifying filesystem object types.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

file <path>

Identify a simulated file, directory, link, or text format.

stat <path>

Show lab file details.