XK0-005 Domain 2: Security

Which command lists SELinux context of file?

Multiple choice — select one answer

Answer choices

  1. a. ls -Z
  2. b. ban IP via iptables/nftables integration
  3. c. /etc/shadow
  4. d. SELinux

Architectural breakdown & explanation

ls -Z shows SELinux security context.

Correct answer(s): a. ls -Z

Exam domain: Domain 2: Security (21% weight on the official guide).

Official documentation & study links

Practice this certification

This page is one question from the CompTIA Linux+ bank. Run a full timed practice exam with domain-weighted random questions in your browser.