CompTIA Linux+ (XK0-004) — Question 113
A junior Linux administrator needs to ensure a service will start on system boot. Which of the following commands should be used to accomplish this task?
Answer options
- A. chkconfig <service> on
- B. systemctl <service> bootup
- C. service <service> enable
- D. crontab install <service>
Correct answer: A
Explanation
The correct answer is A, as 'chkconfig <service> on' is the command used to enable a service to start at boot time in certain Linux distributions. Option B is incorrect because 'systemctl <service> bootup' is not a valid command; it should use 'enable' instead. Option C, 'service <service> enable', is also incorrect because the 'service' command does not have an 'enable' option. Option D is not relevant as 'crontab install <service>' does not pertain to service management at boot time.