QuestionQ9

System Management

A systems administrator must check the status of every service on a Linux server. Which of the following commands performs this task?

  • A systemctl is-active --services
  • B systemctl list-sockets --type-services
  • C systemctl is-enabled --services
  • D systemctl list-units --type-services
Explanation

systemctl list-units lists systemd units together with their runtime states. Restricting the output to service units displays the status of services; the standard syntax is systemctl list-units --type=service.

Community Discussion

No comments yet. Be the first to start the discussion!