Bird
0
0

Why does this command find files modified in the last 12 hours? find . -mtime -0.5

medium📝 Debug Q7 of 15
Linux CLI - Searching and Finding
Why does this command find files modified in the last 12 hours? find . -mtime -0.5
AThe <code>-mtime</code> option accepts decimals for fractional days
BThe path '.' is incorrect
CThe command needs <code>-type f</code> to work
DThe decimal means files older than 0.5 days
Step-by-Step Solution
Solution:
  1. Step 1: Check -mtime argument type

    -mtime accepts floating point numbers (decimals) for fractional days.
  2. Step 2: Understand why decimals work

    Using -0.5 selects files modified less than 0.5 days (12 hours) ago.
  3. Final Answer:

    The -mtime option accepts decimals for fractional days -> Option A
  4. Quick Check:

    -mtime supports decimals [OK]
Quick Trick: -mtime supports fractional days [OK]
Common Mistakes:
  • Thinking -mtime only accepts whole numbers
  • Assuming path or type causes issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes