XK0-006 System Management Practice Question
A technician needs to remove all files in /tmp that are owned by the user 'jdoe' and have not been accessed in 10 days. Which THREE commands or options would be part of a correct solution? (Select THREE.)
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 /tmp -user jdoe -atime +10 -exec rm {} \;
find /tmp -user jdoe -atime +10 -delete finds files belonging to jdoe, with last access more than 10 days ago, and deletes them. -atime measures access time. -delete is a direct action. Alternatively, using -exec rm {} \; works. The correct components include the path, -user, -atime, and action.
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 /tmp -user jdoe -atime +10 -exec rm {} \;
Why this is correct
Correct: alternative way to delete files matching the condition.
- ✓
find /tmp -user jdoe -atime +10 -delete
Why this is correct
Correct combination: matches condition and deletes.
- ✗
find /tmp -user jdoe -delete
Why it's wrong here
Missing access time condition; would delete all files owned by jdoe regardless of access time.
- ✓
find /tmp -user jdoe -atime +10
Why this is correct
Correct: -atime +10 selects files last accessed more than 10 days ago.
- ✗
find /tmp -user jdoe -mtime +10
Why it's wrong here
-mtime is modification time, not access time.
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.