Lpic 2 Linux Engineer · Free Practice Question Medium

Question 13

A system running systemd is not booting properly, and you suspect a misconfigured unit file. You need to check for systemd unit file overrides or custom configurations applied to the default system units. Which command will help you identify these changes?
  • A systemctl status
  • B systemctl list-units --type=service
  • C systemd-delta
  • D journalctl -xe
Reveal correct answer

Correct answer: C

A. The 'systemctl status' command provides information about the current status of a systemd unit, including whether it is active or inactive, any errors that occurred during its execution, and the most recent log entries. However, it does not specifically help in identifying systemd unit file overrides or custom configurations applied to default system units.

B. The 'systemctl list-units --type=service' command lists all active systemd units of type service, showing their current status and whether they are enabled or disabled. While this command provides information about systemd units, it does not specifically help in identifying systemd unit file overrides or custom configurations applied to default system units.

C. The 'systemd-delta' command is used to identify differences between the default unit files provided by systemd and any custom configurations or overrides that have been applied. It helps in pinpointing any changes made to the default system units, making it the correct choice for identifying systemd unit file overrides or custom configurations.

D. The 'journalctl -xe' command is used to view the system journal with additional details for troubleshooting boot issues or system errors. While it can provide valuable information about system logs and errors, it does not specifically help in identifying systemd unit file overrides or custom configurations applied to default system units.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need