Courseiva
System ManagementmediumMultiple ChoiceObjective-mapped

XK0-006 System Management Practice Question

A Linux administrator needs to find all files in /var/log that have been modified within the last 7 days and are larger than 10 MB. Which find command accomplishes this?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

find /var/log -mtime -7 -size +10M

Both commands correctly find files modified within the last 7 days and larger than 10 MB. Option A uses -mtime -7 (modified less than 7 days ago) and option D uses -mmin -10080 (modified less than 10080 minutes ago, which is equivalent to 7 days). Both use -size +10M for files larger than 10 MB.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • find /var/log -mtime -7 -size +10M

    Why this is correct

    Correct: -mtime -7 for last 7 days, -size +10M for larger than 10 MB.

  • find /var/log -atime -7 -size +10M

    Why it's wrong here

    -atime refers to access time, not modification time.

  • find /var/log -mtime +7 -size -10M

    Why it's wrong here

    +7 means older than 7 days, -10M means smaller than 10 MB.

  • find /var/log -mmin -10080 -size +10M

    Why this is correct

    Correct. This is functionally equivalent to option A; -mmin -10080 matches files modified in the last 10080 minutes (7 days), and -size +10M matches files larger than 10 MB.

About these practice questions

One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.