A systems administrator wants to check if the ntpd service is configured to start on startup. Which of the following commands will show that information when run?
To check whether a service is enabled to start on boot, the correct command is:
bash
systemctl is-enabled ntpd.service
is-enabled checks if the service is enabled (i.e., set to start at boot).
is-active checks the current running state, not the boot-time state.
stop and start are used to control the service, not check its boot status.
Reference from CompTIA Linux+ XK0-005 Official Study Guide, Domain 4.0 – System Management:
“Use systemctl is-enabled to determine if a service is enabled at startup. Use systemctl is-active to determine if the service is currently running.”
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit