nerdexam
CompTIACompTIA

XK0-005 · Question #766

XK0-005 Question #766: Real Exam Question with Answer & Explanation

The correct answer is C: systemctl daemon-reload. When making changes to systemd configuration files (such as unit files), the systemctl daemon- reload command must be run to reload the systemd manager configuration. systemctl enable only enables a service to start at boot but does not apply configuration changes immediately. sy

System Management

Question

A Linux administrator changed a systemd configuration. However, the change was not applied after the service was restarted. Which of the following commands is required to apply the change?

Options

  • Asystemctl enable
  • Bsystemctl import-environment
  • Csystemctl daemon-reload
  • Dsystemctl restart

Explanation

When making changes to systemd configuration files (such as unit files), the systemctl daemon- reload command must be run to reload the systemd manager configuration. systemctl enable only enables a service to start at boot but does not apply configuration changes immediately. systemctl restart restarts a specific service but does not reload the systemd daemon itself. The missing option appears to be an unrelated or incorrect command.

Topics

#systemd#service management#Linux configuration#daemon reload

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions