Challenge - 5 Problems
Find Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Find files modified exactly 3 days ago
What is the output of this command if the directory contains files modified 1, 3, and 5 days ago?
find . -type f -mtime 3Linux CLI
find . -type f -mtime 3
Attempts:
2 left
💡 Hint
Remember, '-mtime n' matches files modified exactly n days ago.
✗ Incorrect
The '-mtime 3' option finds files modified between 72 and 96 hours ago, not less or more.
💻 Command Output
intermediate1:30remaining
Find files modified less than 7 days ago
What does this command list?
find /tmp -type f -mtime -7Linux CLI
find /tmp -type f -mtime -7
Attempts:
2 left
💡 Hint
The minus sign before 7 means less than 7 days.
✗ Incorrect
The '-mtime -7' option matches files modified within the last 7 days (less than 7).
💻 Command Output
advanced1:30remaining
Find files modified more than 10 days ago
What output will this command produce?
find /var/log -type f -mtime +10Linux CLI
find /var/log -type f -mtime +10
Attempts:
2 left
💡 Hint
The plus sign means strictly greater than the number of days.
✗ Incorrect
The '-mtime +10' option finds files modified more than 10 days ago.
🔧 Debug
advanced2:00remaining
Why does this find command fail to list files modified in last 2 days?
You run:
but it does not list files modified yesterday. Why?
find . -type f -mtime 2but it does not list files modified yesterday. Why?
Linux CLI
find . -type f -mtime 2
Attempts:
2 left
💡 Hint
Check how '-mtime n' works with exact days.
✗ Incorrect
The '-mtime 2' matches files modified between 48 and 72 hours ago, so files modified yesterday (less than 48 hours) are excluded.
🚀 Application
expert2:30remaining
Find and delete files older than 30 days safely
Which command safely finds and deletes files older than 30 days in /home/user/tmp?
Attempts:
2 left
💡 Hint
Use the safest and simplest way to delete files with find.
✗ Incorrect
The '-delete' option deletes files safely and efficiently. Option B works but is slower. Option B uses '-rf' which is dangerous for files. Option B can fail with spaces in filenames.