Exam XK0-006 Topic 1 Question 15 Discussion
Actual exam question for CompTIA's XK0-006 exam
Question #: 15
Topic #: 1
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?

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
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).