Bird
0
0

What does the command find . -mtime -3 do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Searching and Finding
What does the command find . -mtime -3 do in Linux?
AFinds files modified within the last 3 days
BFinds files modified exactly 3 days ago
CFinds files modified more than 3 days ago
DFinds files modified more than 3 hours ago
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of -mtime

    The -mtime option in find searches files by modification time in days.
  2. Step 2: Interpret the negative number -3

    A negative number means files modified less than that many days ago, so -3 means within the last 3 days.
  3. Final Answer:

    Finds files modified within the last 3 days -> Option A
  4. Quick Check:

    -mtime -3 means modified less than 3 days ago [OK]
Quick Trick: Negative -mtime means files modified within last N days [OK]
Common Mistakes:
  • Confusing -mtime -3 with exactly 3 days ago
  • Thinking -mtime -3 means more than 3 days ago
  • Mixing hours with days in -mtime

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes