A system administrator wants to find all files in /var/log that have been modified in the last 7 days and are larger than 100MB. Which command should be used?
The `-mtime -7` predicate matches files modified within the last seven days, while `-size +100M` filters those exceeding 100MB, both applied to the `/var/log` path. Combining these tests with implicit AND logic satisfies the stem's dual constraints of recent modification and large size in a single traversal.
Why this answer
The find command with -mtime -7 matches files modified within the last 7 days (the minus sign means 'less than 7 days ago'), and -size +100M matches files larger than 100MB (the plus sign means 'greater than'). This combination precisely satisfies both conditions.
Exam trap
XK0-006 often tests the sign convention in find time and size predicates — candidates frequently invert -mtime -7 and -mtime +7 or confuse -atime with -mtime.
How to eliminate wrong answers
Option A is wrong because -mtime +7 matches files modified more than 7 days ago, which is the opposite of the requirement. Option B is wrong because -atime -7 checks access time, not modification time — reading a file updates atime, so it would return files that were merely read, not modified. Option D is wrong because -size -100M matches files smaller than 100MB, the reverse of what is needed.