XK0-005 · Question #1592
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…
The correct answer is D. journalctl -xu network. journalctl -xu network is the correct command to retrieve detailed systemd journal logs for a specific service unit. The -u flag specifies the unit name (e.g., network), and -x adds explanatory catalog messages to help diagnose errors. This gives full log output including error…
Question
Exhibit
Options
- Asystemctl analyze network
- Bsystemctl info network
- Csysctl -a network
- Djournalctl -xu network
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- D91% (21)
Explanation
journalctl -xu network is the correct command to retrieve detailed systemd journal logs for a specific service unit. The -u flag specifies the unit name (e.g., network), and -x adds explanatory catalog messages to help diagnose errors. This gives full log output including error messages, exit codes, and timestamps. systemctl analyze (A) is used to inspect boot performance, not service errors. systemctl info (B) is not a valid systemd subcommand. sysctl -a (C) lists kernel runtime parameters and is unrelated to service unit status or logs.
Topics
Community Discussion
No community discussion yet for this question.
