Which command would you use to check the status of a service in SYSTEMD?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command to check the status of a service in SYSTEMD is "systemctl status." This command provides detailed information about a service's current state, including whether it is active, inactive, or failed, along with the last few lines of the service's log output. This functionality is essential for administrators who need to manage services effectively within a Linux system that uses SYSTEMD for service management.

In contrast, the other options either do not align with SYSTEMD's structure or do not exist as valid commands. For instance, "service --status" and "service status" suggest usage of the older System V init system, which lacks the full capabilities and details provided by the systemctl command in SYSTEMD. "check service" is not a recognized command in Linux for managing services. Thus, using "systemctl status" is the appropriate and correct way to interact with and monitor services managed by SYSTEMD.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy