Linux Survival Basics
Read-onlyCheck 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.
systemctl status logrotate.timer --no-pagersystemctl status logrotate.timer --no-pager
next steps
Related commands
Read One systemd Timer Status
Timer status shows whether the schedule is loaded and active.
systemctl status backup.timer --no-pager
Read the Failure Cause in systemctl Status
The status page often tells you the failed startup step before you open every log.
systemctl status app-worker --no-pager --lines=50
Inspect One Service Without Pager Traps
Make systemctl status safe for scripts, screenshots, and quick incident notes.
systemctl status nginx --no-pager --lines=30
Compare Failure Output With the Effective Unit
Put the failed step next to the unit config that created it.
systemctl status app-worker --no-pager --lines=50 && systemctl cat app-worker
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
- Logrotate not running hub Use for timer branch.
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.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.