Courseiva
System ManagementhardMultiple ChoiceObjective-mapped

XK0-006 System Management Practice Question

An administrator needs to find all files in /etc that have the SUID bit set. Which find command is correct?

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 -perm /4000

The SUID bit is represented by the permission 4000. -perm /4000 checks if any of the bits in 4000 are set (SUID).

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 -perm /4000

    Why this is correct

    Correct: /4000 matches files with SUID set.

  • find /etc -exec ls -l {} \; | grep '^...s'

    Why it's wrong here

    This is a workaround but not the standard find method.

  • find /etc -perm -4000

    Why it's wrong here

    -4000 matches files with all bits in 4000 set, which is more restrictive but also works for SUID. However, /4000 is more robust. In this context, /4000 is preferred because SUID is a single bit.

  • find /etc -type f -perm 4000

    Why it's wrong here

    -perm 4000 matches exactly 4000, which requires other permissions to be zero.

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 →

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.