Linux Basics /

Find the Hidden File

EASY1 task

The find Command

ls only shows you what is in one directory at a time. The find command searches recursively through directories for files matching criteria you specify.

Basic Syntax

find /path -name "filename" find / -name ".txt" find / -name "flag"

Useful Options

-name — search by filename -type f — only files -type d — only directories -size +1M — files larger than 1MB

Your Mission

A flag file has been hidden somewhere on the server. It is named flag.txt but you do not know where it is.

Use find to locate it, then cat its contents.

Example

find / -name "flag.txt" 2>/dev/null

The 2>/dev/null part hides permission errors so the output is clean.

Answer the questions below

Room Progress0 / 10 pts
0/1 tasks complete

Use the find command to locate flag.txt anywhere on the server. Read it with cat.

💡 Show hint

Run: find / -name flag.txt 2>/dev/null

No target
No target machine for this room.