ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 5 - XK0-005 discussion

Report
Export

A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

A.
systemctl status systemd-resolved.service
Answers
A.
systemctl status systemd-resolved.service
B.
systemctl enable systemd-resolved.service
Answers
B.
systemctl enable systemd-resolved.service
C.
systemctl mask systemd-resolved.service
Answers
C.
systemctl mask systemd-resolved.service
D.
systemctl show systemd-resolved.service
Answers
D.
systemctl show systemd-resolved.service
Suggested answer: A

Explanation:

The command systemctl status systemd-resolved.service will show the information about the service systemd-resolved.service. The systemctl command is a tool for managing system services and units. The status option displays the current status of a unit, such as active, inactive, or failed. The output also shows the unit description, loaded configuration, process ID, memory usage, and recent log messages. This command will show if the service systemd-resolved.service is running without any errors. This is the correct command to use to accomplish the task. The other options are incorrect because they either perform different actions (enable, mask, or show) or do not show the status of the service (systemctl show systemd-resolved.service only shows the properties of the service, not the status). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 14: Managing Processes and Scheduling Tasks, page 427.

asked 02/10/2024
CATALIN FLORESCU
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first