Courseiva
easyMultiple ChoiceObjective-mapped

XK0-006 Practice Question: An administrator runs the command `ls -l…

An administrator runs the command `ls -l /data/file.txt` and sees the output: `-rw-r-----+ 1 root project 1024 Mar 15 10:00 file.txt`. The administrator wants to view the current ACL entries on this file. Which command should be used?

⚠ Common exam trap

A common pitfall on the CompTIA Linux+ exam is confusing `chacl` (used for changing ACLs) with `getfacl`, or assuming a command like `lsacl` exists because of the pattern `ls` for listing, when in fact `getfacl` is the correct utility to view ACL entries.

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

getfacl /data/file.txt

The `+` at the end of the permission string (`-rw-r-----+`) indicates that the file has extended ACL (Access Control List) entries beyond the standard Unix permissions. The `getfacl` command is the standard Linux utility to display the current ACL entries for a file or directory, showing user, group, and mask entries along with any named user or group ACLs.

Answer analysis

Option-by-option breakdown

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

  • getfacl /data/file.txt

    Why this is correct

    Correct command to view ACL entries.

  • chacl /data/file.txt

    Why it's wrong here

    chacl is used to change ACLs, not view them.

  • lsacl /data/file.txt

    Why it's wrong here

    lsacl is not a standard Linux command.

  • aclshow /data/file.txt

    Why it's wrong here

    aclshow is not a standard command.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

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 →

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.