Services and User Management
An administrator must list regular files under /var/log that are larger than 100 MiB and were modified within the last 7 days. Which command does this?
Show the answer
Correct answerD. find /var/log -type f -size +100M -mtime -7
-size +100M matches files over 100 MiB and -mtime -7 matches files modified less than 7 days ago. Using +7 for -mtime is tempting but selects files modified more than 7 days ago.