What are the systemctl options to "List all failed units"


Returns a list of the units, whether they are loaded, active, their sub and description.

systemctl is-failed

Returns a list of status only.

What is the syntax to return the details of the failed units?

Asked By: Tai Paul


You can use systemctl list-units --state=failed to list all failed units.

EDIT: Since systemd version 233 (March 2017) systemctl --failed is documented as equivalent to the above.

The parameters for systemctl are documented in the man page systemctl(1).

Answered By: cg909

This is more simple:

systemctl --failed

Answered By: Player1
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.