Find the Lost Files

Linux lab Intermediate 5 tasks 20 points

The archive directory is huge, with folders inside folders inside folders. Searching by hand would take forever. Use find.

How it works: the terminal below is a real Linux machine running in your browser. Click it and type. Tasks tick themselves off as you complete them; questions are answered in the box under each task. Press Reset any time for a fresh machine. Your password on this machine (for sudo) is student.

student@vulntech:~ Starting…
Getting your Linux machine ready…
The first start downloads about 20 MB. After that your browser keeps it, and labs start in a moment.

Hints

Quote wildcard patterns: find archive -name "*.conf".

Solution explanation

find archive -name passport.pdf prints archive/2021/07/passport.pdf. find archive -name "*.conf" lists four files, and -size +1M finds video-call.mp4. -iname matches EMPTY even though you searched for empty.

Show solution
find archive -name passport.pdf
find archive -name "*.conf"
find archive -size +1M
cp archive/2021/07/passport.pdf ~
find archive -type d -iname empty
HOME LEARN COMMUNITY DASHBOARD