nerdexam
CompTIACompTIA

XK0-005 · Question #1847

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

The correct answer is D: systemctl enable --now httpd. The command both enables the Apache (httpd) service systemctl enable --now httpd to start automatically on boot and starts it immediately in the current session.

System Management

Question

A Linux administrator is configuring Apache on a system and needs to allow the service to start after every startup. Which of the following commands will allow the Linux administrator to accomplish this task while starting the service at the same time?

Options

  • Asystemctl mask --state=active httpd
  • Bsystemctl start --runtime boot httpd
  • Csystemctl set-property restart httpd
  • Dsystemctl enable --now httpd

Explanation

The command both enables the Apache (httpd) service systemctl enable --now httpd to start automatically on boot and starts it immediately in the current session.

Topics

#systemd#service management#boot configuration#Apache

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions