XK0-006 System Management Practice Question
An administrator wants to list all files in the current directory that are larger than 1 MB. Which find commands are correct? (Choose two.)
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 . -type f -size +1M
Both options A and D are syntactically correct and will produce the same result. The find command evaluates expressions in order, but the -type and -size conditions are independent; their order does not affect functionality. Option A (find . -type f -size +1M) specifies file type before size, while option D (find . -size +1M -type f) specifies size before file type. Both are valid because find processes predicates left-to-right, but since -type f filters by file type and -size +1M filters by size, any file that does not satisfy both will be excluded regardless of order.
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 . -type f -size +1M
Why this is correct
Correct. This command correctly lists regular files larger than 1 MB. The -type f ensures only regular files are considered, and -size +1M matches files larger than 1 MB.
- ✗
find . -type f -size 1M
Why it's wrong here
Incorrect. The -size 1M (without a plus sign) matches files exactly 1 MB, not larger than 1 MB.
- ✗
find . -type f -size +1MB
Why it's wrong here
Incorrect. The size specifier +1MB (with MB) is not valid; find expects the size suffix as M, not MB.
- ✓
find . -size +1M -type f
Why this is correct
Correct. Although the order of -size and -type is reversed, the command is still syntactically correct and will produce the same result as option A. The find command evaluates predicates left-to-right, but both forms work because all conditions must be met regardless of order.
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.