ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 212 - XK0-005 discussion

Report
Export

A systems administrator is investigating a service that is not starting up. Given the following information:

Which of the following systemd commands should the administrator use in order to obtain more details about the failing service?

A.
systemct1 analyze network
Answers
A.
systemct1 analyze network
B.
systemct1 info network
Answers
B.
systemct1 info network
C.
sysctl -a network
Answers
C.
sysctl -a network
D.
journalctl -xu network
Answers
D.
journalctl -xu network
Suggested answer: D

Explanation:

The systemd is a system and service manager for Linux systems that provides a standard way to control and monitor system services. The systemd uses various commands and tools to manage and troubleshoot system services, such as systemct1, sysctl, and journalctl. The systemct1 command is used to start, stop, enable, disable, restart, reload, status, and list system services. The sysctl command is used to configure kernel parameters at runtime. The journalctl command is used to view and filter the logs of system services.

To investigate a service that is not starting up, the administrator can use the journalctl command with the-xuoption. The-xoption enables verbose output that includes explanatory text and priority information. The-uoption filters the output by a specific unit name, such as network.service. Therefore, the commandjournalctl -xu networkwill show detailed logs of the network service, which can help identify the cause of the failure. The statement D is correct.

The statements A, B, and C are incorrect because they do not provide more details about the failing service. Thesystemct1 analyze networkcommand does not exist. Thesystemct1 info networkcommand shows basic information about the network unit, such as description, load state, active state, sub state, and main PID. Thesysctl -a networkcommand shows all kernel parameters related to network settings.Reference: [How to Use Systemd to Manage System Services]

asked 02/10/2024
JR Gee
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first