XK0-006 System Management Practice Question
A Linux administrator needs to locate all files in the /etc directory that have been modified in the last 24 hours and are not owned by root. Which two commands can be combined to achieve this? (Select 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 /etc -mtime 0 -not -user root
find with -mtime 0 finds files modified in the last 24 hours; -not -user root excludes root-owned files. The -exec option executes ls -l to list details.
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 -mtime 0 -not -user root
Why this is correct
Correct: finds files modified in last 24 hours not owned by root.
- ✗
find /etc -ctime 0 -not -group root
Why it's wrong here
-ctime is change time, and -group root checks group ownership.
- ✓
find /etc -mmin -1440 -not -user root
Why this is correct
-mmin -1440 is equivalent to -mtime 0; also correct.
- ✗
find /etc -mtime 0 -uid 0
Why it's wrong here
-uid 0 matches root, not excludes.
- ✗
find /etc -atime 0 -not -user root
Why it's wrong here
-atime is access time, not modification time.
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.