Courseiva
System Management →easyMultiple Choice

XK0-006 System Management Practice Question

A technician wants to find all files owned by user 'jane' in the /home directory. Which 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 /home -type f -user jane

The find command with -user option searches for files owned by a specific user.

Answer analysis

Option-by-option breakdown

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

  • ✗

    grep -r jane /home

    Why it's wrong here

    grep searches file contents for the string 'jane'; it never inspects ownership metadata. The find command with -user matches the owner field, which is the correct tool when filtering by UID or username rather than by text inside files.

  • ✗

    ls -lR /home | grep jane

    Why it's wrong here

    ls -lR lists directory contents recursively and greps the displayed text, so it matches filenames or group names containing 'jane' and misses files whose owner column is numeric. find -user queries the inode's UID field directly, giving exact ownership matches.

  • ✗

    locate jane /home

    Why it's wrong here

    locate queries the mlocate database by filename pattern and ignores ownership entirely, and its syntax takes patterns, not a directory argument in that form. find -user jane /home reads inode ownership directly, which is what the task requires.

  • ✓

    find /home -type f -user jane

    Why this is correct

    The -user predicate filters by owner, -type f restricts matches to regular files, and /home scopes the search to the required directory. This combination returns exactly the files owned by jane, satisfying the stem's ownership constraint without listing directories.

About these practice questions

This XK0-006 question is part of Courseiva's 781-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 →

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.