CompTIA Linux+ (XK0-004) — Question 51
An operator finds a user is having issues with opening certain files.
Which of the following commands would allow the security administrator to list and check the SELinux context?
Answer options
- A. ls ג€"D
- B. ls ג€"a
- C. ls ג€"Z
- D. ls -l
Correct answer: C
Explanation
The correct answer is C, as the 'ls -Z' command is specifically designed to show the SELinux context of files. Options A and B do not provide any information related to SELinux contexts, while option D only lists file details without the necessary security context information.