Back to commands

Hosting Operations

Read-only

Spot Stale systemd Timers

A timer may exist but have no next scheduled run, which can hide disabled or stale automation.

Command

systemctl list-timers --all --no-pager --plain | awk 'NR==1 || $1=="n/a" || /backup\.timer|logrotate\.timer/'

Before you run this

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

When not to use it: Do not assume n/a is always bad; some timers are intentionally inactive until enabled or triggered.

Expected output

Timer rows including n/a NEXT values and important scheduled jobs.

System impact

Read-only. Nothing changes. The command filters the timer list for stale-looking and important automation rows.

Recovery / rollback: no state is changed.

When to use it

Use when backups, reports, renewals, or cleanup jobs stopped running after a migration or package change.

When not to use it

Do not assume n/a is always bad; some timers are intentionally inactive until enabled or triggered.

next steps

Related commands

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

List Upcoming systemd Timers

Cron is not the only scheduler on modern Linux servers.

systemctl list-timers --all --no-pager
Linux Survival Basics Read-only

List systemd Timers and Last Runs

A timer can be inactive, missed, or waiting for the wrong calendar.

systemctl list-timers --all --no-pager
Hosting Operations Can be slow

Group Journal Errors by Unit

A noisy incident usually has a noisy source.

journalctl -p err..alert --since "2 hours ago" --no-pager -o short-iso | awk '{split($3,a,"["); unit=a[1]; count[unit]++} END {for (u in count) print count[u], u}' | sort -nr
Hosting Operations Read-only

Check Failed Dependencies for a Service

Sometimes the service is only the messenger for a failed dependency.

systemctl list-dependencies app-worker --failed --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.