Challenge - 5 Problems
File Finder Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this find command?
You run the command
find /tmp -type f -name '*.log'. What does this command output?Linux CLI
find /tmp -type f -name '*.log'
Attempts:
2 left
💡 Hint
Look at the options -type and -name in the find command.
✗ Incorrect
The command searches recursively in /tmp for files (-type f) whose names end with .log (-name '*.log'). It lists their paths.
🧠 Conceptual
intermediate1:00remaining
Why is using 'find' faster than manual search?
Why does using the
find command save time compared to manually looking for files?Attempts:
2 left
💡 Hint
Think about what manual searching involves versus what find does.
✗ Incorrect
Manual search requires opening folders one by one, which is slow. Find automates this by scanning all folders quickly and filtering results.
🔧 Debug
advanced1:30remaining
What error does this find command produce?
What error will this command produce?
find /var -name '*.txt' -typeLinux CLI
find /var -name '*.txt' -type
Attempts:
2 left
💡 Hint
Check if all options have required arguments.
✗ Incorrect
The -type option requires an argument like 'f' or 'd'. Missing it causes this error.
🚀 Application
advanced1:30remaining
Which command finds files modified in last 7 days?
You want to find all files in /home that were modified in the last 7 days. Which command does this?
Attempts:
2 left
💡 Hint
Look at the meaning of -mtime and the sign before the number.
✗ Incorrect
-mtime -7 finds files modified less than 7 days ago. Positive 7 means exactly 7 days ago. -atime checks access time, not modification.
🧠 Conceptual
expert2:00remaining
How does using 'find' improve scripting automation?
In scripting automation, why is using the 'find' command important for efficiency?
Attempts:
2 left
💡 Hint
Think about how scripts can adapt to different file locations.
✗ Incorrect
'find' helps scripts find files wherever they are, making scripts flexible and faster by avoiding manual path updates.