Exam XK0-006 Topic 1 Question 15 Discussion

Actual exam question for CompTIA's XK0-006 exam
Question #: 15
Topic #: 1
A systems administrator attempts to edit a file as root, but receives the following error:

Which of the following commands allows the administrator to edit the file?

Suggested Answer: B Vote an answer

The lsattr output shows the immutable (i) attribute set on /etc/resolv.conf. This prevents any modifications, even by root. Running chattr -i removes the immutable flag, allowing the administrator to edit the file.

by Linda at Jan 05, 2026, 09:49 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10