CompTIA Linux+ (XK0-004) — Question 175
A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the administrator issue to ensure the web server starts at boot time?
Answer options
- A. systemctl service on
- B. systemctl enable <name>.service
- C. systemctl service enable
- D. systemctl on <name>.service
Correct answer: B
Explanation
The correct command is 'systemctl enable <name>.service', which configures the system to start the service automatically at boot time. The other options are incorrect because 'systemctl service on' and 'systemctl service enable' do not exist as valid commands, and 'systemctl on <name>.service' is also not a valid command for enabling services.