XK0-006 System Management Practice Question
A system administrator needs to find all files in the /etc directory that are larger than 1 MB and are regular files. 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 /etc -type f -size +1M
Only option A correctly accomplishes the task. Option A uses -type f to select regular files and -size +1M to find files larger than 1 MB. Option B fails because the size suffix 'MB' is invalid; it should be 'M'. Option C omits the '+' prefix, so it matches files exactly 1 MB, not larger. Option D is incorrect; it uses -type d, which selects directories, not regular files. Option E also uses -type d, and the order of predicates does not affect the output, but the type is wrong.
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 /etc -type f -size +1M
Why this is correct
Correct. Uses -type f to select regular files and -size +1M for files larger than 1 MB.
- ✗
find /etc -size +1MB -type f
Why it's wrong here
Incorrect. The size suffix 'MB' is invalid; the correct suffix is 'M'.
- ✗
find /etc -type f -size 1M
Why it's wrong here
Incorrect. The '-' prefix is missing; -size 1M matches exactly 1 MB, not larger.
- ✗
find /etc -type d -size +1M
Why it's wrong here
Incorrect. This command uses -type d, which limits results to directories, not regular files. Therefore it does not accomplish the task.
- ✗
find /etc -size +1M -type f
Why it's wrong here
Incorrect. Uses -type d (directories) instead of -type f (regular files), so it does not find the intended files.
Go deeper
Related to this question
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 →
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.