Bird
0
0

You want to find all files modified in the last 2 days and larger than 100KB in your Documents folder. Which command will save you the most time?

hard📝 Application Q15 of 15
Linux CLI - Searching and Finding
You want to find all files modified in the last 2 days and larger than 100KB in your Documents folder. Which command will save you the most time?
Afind ~/Documents -mtime +2 -size -100k
Bfind ~/Documents -mtime 2 -size 100k
Cfind ~/Documents -mtime -2 -size +100k
Dfind ~/Documents -mtime 2 -size +100k
Step-by-Step Solution
Solution:
  1. Step 1: Understand the time and size filters

    -mtime -2 means modified within last 2 days; -size +100k means larger than 100KB.
  2. Step 2: Match filters to options

    find ~/Documents -mtime -2 -size +100k correctly uses -mtime -2 and -size +100k.
  3. Final Answer:

    find ~/Documents -mtime -2 -size +100k -> Option C
  4. Quick Check:

    Recent and large files = find ~/Documents -mtime -2 -size +100k [OK]
Quick Trick: Use -mtime -N for last N days, +size for larger files [OK]
Common Mistakes:
  • Using + instead of - for recent files
  • Confusing size units (k vs K)
  • Omitting + or - signs in filters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes