Back to commands

Linux Survival Basics

Read-only

Check logrotate Timer Status

You need the systemd timer state for logrotate.

Command

systemctl status logrotate.timer --no-pager

Before you run this

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

When not to use it: Do not enable or restart timers before checking recent failures.

Expected output

Timer active state, trigger time, and recent status lines.

System impact

Read-only. Nothing changes. The command reads current state and prints diagnostic evidence.

Recovery / rollback: no state is changed.

When to use it

Use on systemd hosts.

When not to use it

Do not enable or restart timers before checking recent failures.

Example run

Commands shown

These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.

  1. systemctl status logrotate.timer --no-pager
  2. systemctl status logrotate.timer --no-pager

next steps

Related commands

Linux Survival Basics Read-only

Read One systemd Timer Status

Timer status shows whether the schedule is loaded and active.

systemctl status backup.timer --no-pager
Linux Survival Basics Read-only

Inspect One Service Without Pager Traps

Make systemctl status safe for scripts, screenshots, and quick incident notes.

systemctl status nginx --no-pager --lines=30
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

next diagnostic step

Where to go from this command

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.