Bird
0
0

Which of the following is the correct syntax to find files modified exactly 3 days ago?

easy📝 Syntax Q3 of 15
Linux CLI - Searching and Finding
Which of the following is the correct syntax to find files modified exactly 3 days ago?
Afind . -mtime +3
Bfind . -mtime 3
Cfind . -mtime -3
Dfind . -mtime 0
Step-by-Step Solution
Solution:
  1. Step 1: Recall -mtime n means exactly n days ago

    So -mtime 3 finds files modified exactly 3 days ago.
  2. Step 2: Check other options

    +3 means more than 3 days ago, -3 means less than 3 days ago, 0 means less than 1 day ago.
  3. Final Answer:

    find . -mtime 3 -> Option B
  4. Quick Check:

    -mtime 3 = Exactly 3 days ago [OK]
Quick Trick: No sign means exactly that many days [OK]
Common Mistakes:
  • Using + or - instead of exact number
  • Confusing 0 with 3 days

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes