CompTIA Linux+ (XK0-005) — Question 124

A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

Answer options

Correct answer: A

Explanation

The command 'systemctl status systemd-resolved.service' provides detailed information about the running status and any errors of the service. The other options do not check the status: 'enable' sets the service to start at boot, 'mask' disables the service, and 'show' presents configuration data but not the current running status.