nerdexam
CompTIA

XK0-006 · Question #7

A systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?

The correct answer is D. systemctl list-units --type-services. The systemctl list-units --type=service command displays all loaded service units and their statuses (running, exited, failed, etc.), allowing the administrator to check the state of all services

System Management

Question

A systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?

Options

  • Asystemctl is-active --services
  • Bsystemctl list-sockets --type-services
  • Csystemctl is-enabled --services
  • Dsystemctl list-units --type-services

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    5% (2)
  • D
    90% (38)

Explanation

The systemctl list-units --type=service command displays all loaded service units and their statuses (running, exited, failed, etc.), allowing the administrator to check the state of all services

Topics

#systemctl#systemd#service management#list-units

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice