Mission 08

Find files

Search the simulated filesystem by root and filename pattern.

Files and paths
8 minutes Beginner Lesson 8 of 360
findlsstat
Lesson 8 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.

Find auth logs

Run find /var -name auth.

find /var -name auth
Find hello files

Run find /home -name hello.

find /home -name hello
Inspect found file

Run stat /home/learner/projects/hello.txt.

stat /home/learner/projects/hello.txt
Lesson support

What to notice while you play.

Objective

Locate files without wandering folder by folder.

Hint

Try find /var -name log and find /home -name hello.

Why it matters

Fast file discovery is a core troubleshooting skill.

Common mistakes
  • Searching / when a smaller root would do.
  • Forgetting that -name is a filename filter.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

find [path] [-name text]

Search lab filesystem paths.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.