nerdexam
CompTIA

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…

Troubleshooting

Question

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?

Exhibit

XK0-005 question #1592 exhibit

Options

  • Asystemctl analyze network
  • Bsystemctl info network
  • Csysctl -a network
  • Djournalctl -xu network

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    91% (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

#systemd#Service Management#Troubleshooting#Logging

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice