Back to commands

Linux Survival Basics

Read-only

List Upcoming systemd Timers

Backups, renewals, and cleanup jobs may run as systemd timers, but they are easy to miss if you only inspect cron.

Command

systemctl list-timers --all --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 to inspect classic cron jobs; check crontabs separately.

Expected output

Timer rows showing NEXT, LEFT, LAST, UNIT, and ACTIVATES.

System impact

Read-only. Nothing changes. systemd prints timer units, next run time, last run time, and the service each timer activates.

Recovery / rollback: no state is changed.

When to use it

Use when checking backups, certificate renewals, cleanup jobs, or unexpected periodic work.

When not to use it

Do not use it to inspect classic cron jobs; check crontabs separately.

Watch this command run

Command transcript

This sanitized transcript shows the commands and output shape without exposing host details.

demo@lab:~$

$ systemctl list-timers --all --no-pager

NEXT                         LEFT     LAST                         PASSED UNIT           ACTIVATES
Thu 2026-06-25 22:00:00 CDT  7h left  Thu 2026-06-25 02:00:00 CDT  12h ago backup.timer   backup.service
Fri 2026-06-26 00:05:00 CDT  9h left  Thu 2026-06-25 00:05:00 CDT  14h ago certbot.timer  certbot.service

$ systemctl --failed --no-pager

  UNIT              LOAD   ACTIVE SUB    DESCRIPTION
  backup.service    loaded failed failed Nightly backup job
  app-worker.service loaded failed failed App background worker
2 loaded units listed.
View commands shown

These are the commands shown in the sanitized transcript.

Commands shown

  1. systemctl list-timers --all --no-pager
  2. systemctl --failed --no-pager

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

Show Failed systemd Units

One command tells you which services systemd already knows are broken.

systemctl --failed --no-pager
Hosting Operations Read-only

Spot Stale systemd Timers

The suspicious timer is the one with no next run.

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

  • lpic1:101-system-architecture
  • lpic1:103-gnu-unix-commands
  • lpic1:107-admin-tasks
  • lpic1:108-essential-services
  • lfcs:essential-commands
  • lfcs:operations-deployment
  • lfcs:services-logs
  • linuxplus:provisional
  • linuxplus:services-users
  • linuxplus:troubleshooting
  • risk:read-only

Useful for

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

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