Back to commands

Linux Survival Basics

Read-only

Show Failed systemd Units

A VPS feels unhealthy, but checking services one by one wastes time and misses failed timers, mounts, and sockets.

Command

systemctl --failed --no-pager

Before you run this

System impact: Read-only. Low when scoped to the shown target.

When not to use it: Do not use it as the only health check; a service can be running but still misconfigured or returning bad responses.

Expected output

Failed unit rows such as backup.service or app-worker.service.

System impact

Read-only. Nothing changes. The command prints units whose current systemd state is failed.

Recovery / rollback: no state is changed.

When to use it

Use after deploys, reboots, package upgrades, or alerts when you need the fastest systemd health snapshot.

When not to use it

Do not use it as the only health check; a service can be running but still misconfigured or returning bad responses.

next steps

Related commands

Linux Survival Basics Read-only

Show Failed Mount Units

systemd often records mount failures as failed units.

systemctl --failed --no-pager
Linux Survival Basics Read-only

Map systemd Timers to Services

A timer is only half the scheduled job. The service is the payload.

systemctl list-timers --all --no-pager --plain | awk 'NR==1 || /\.timer/ {print $(NF-1), "->", $NF}'
Linux Survival Basics Read-only

Show a Service LimitNOFILE

A shell ulimit is not the service limit.

systemctl show nginx -p LimitNOFILE --no-pager
Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice
  • Linux+ style troubleshooting review

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.