A Linux administrator needs to locate all files in the /var directory that have been modified within the last 30 minutes and are larger than 10MB. Which command accomplishes this task?
Trap 1: find /var -mmin 30 -size +10M
-mmin 30 matches files modified exactly 30 minutes ago, not within the last 30 minutes.
Trap 2: locate /var -mmin -30 -size +10M
locate does not support -mmin or -size options.
Trap 3: find /var -mtime -30 -size +10M
-mtime -30 matches files modified within the last 30 days, not minutes.
- A
find /var -mmin 30 -size +10M
Why wrong: -mmin 30 matches files modified exactly 30 minutes ago, not within the last 30 minutes.
- B
find /var -mmin -30 -size +10M
Correct: -mmin -30 matches files modified less than 30 minutes ago, and -size +10M matches files larger than 10MB.
- C
locate /var -mmin -30 -size +10M
Why wrong: locate does not support -mmin or -size options.
- D
find /var -mtime -30 -size +10M
Why wrong: -mtime -30 matches files modified within the last 30 days, not minutes.