What command would you use to check the status of a service on a RHEL 8 server?

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

Prepare for the Red Hat Certified Architect Exam with our comprehensive quiz. Master your skills with multiple choice questions and detailed explanations. Gear up to excel!

To check the status of a service on a RHEL 8 server, the correct command is systemctl status. This command is part of the systemd system and service manager, which has replaced the older init system used in previous versions of RHEL.

When executed, systemctl status <service-name> provides detailed information about the specified service, including whether it is active or inactive, its process ID, memory usage, and recent log entries. This thorough output helps system administrators quickly assess the operational state of services running on the server.

The other commands listed do not effectively serve this purpose in RHEL 8. The service status command is less used in modern systems as it was originally part of the older SysVinit system and does not provide the same level of detail in a systemd environment. The chkconfig status command relates more to the enabling and disabling of services rather than their current state, and ctrl status is not a recognized command in this context. Hence, systemctl status is the go-to command for checking service status, showcasing the transition to the systemd framework in RHEL 8.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy