practice task
List Failed systemd Units
After a reboot, a host is reachable but something feels broken. You need a quick inventory of failed units before digging into individual logs.
Independent study support only. No affiliation, endorsement, exam dumps, or guaranteed exam results.
Try first
systemctl --failed --no-pager
Goal
Find failed units and choose one unit to inspect with status and journal output.
Expected output
A list of failed loaded units, usually with UNIT, LOAD, ACTIVE, SUB, and DESCRIPTION columns. No failed units means the list should be empty.
Teaches
Use systemd's own failed-unit state as the first triage list after boot or deploy.
Common mistake
Restarting services one by one without first seeing which units systemd already marked as failed.
check your answer
Answer key
What should your command prove?
A list of failed loaded units, usually with UNIT, LOAD, ACTIVE, SUB, and DESCRIPTION columns. No failed units means the list should be empty.
How to explain it
Use systemd's own failed-unit state as the first triage list after boot or deploy.
What to avoid
Restarting services one by one without first seeing which units systemd already marked as failed.
command set
Commands to know
systemctl --failedsystemctl status UNIT --no-pagerjournalctl -u UNIT -b --no-pager
Related examples
answer check
Compare expected output
Open these command examples to compare your answer against realistic output.
next practice
Check Pending Package Updates
A Debian or Ubuntu server may be missing important updates. You need to list pending upgrades without installing anything.