Linux Survival Basics
Read-onlyCompare Failure Output With the Effective Unit
systemctl status names a failed startup step, but you need to connect that symptom to the effective unit and drop-in configuration.
Command
systemctl status app-worker --no-pager --lines=50 && systemctl cat app-worker
Before you run this
System impact: Read-only. Low when scoped to the shown target.
When not to use it: Do not edit the service until you know whether the main unit or a drop-in owns the setting you plan to change.
Expected output
A failed status page followed by the main unit file and drop-in override that changes the service user.
System impact
Read-only. Nothing changes. The commands print failure evidence followed by the unit fragments systemd loaded.
Recovery / rollback: no state is changed.
When to use it
Use when status mentions USER, CHDIR, EXEC, environment files, or a drop-in and you need the config beside the failure evidence.
When not to use it
Do not edit the service until you know whether the main unit or a drop-in owns the setting you plan to change.
next steps
Related commands
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 the Unit File and Drop-ins Together
The bug may be in an override file, not the main unit.
systemctl cat app-worker
Inspect One Service Without Pager Traps
Make systemctl status safe for scripts, screenshots, and quick incident notes.
systemctl status nginx --no-pager --lines=30
Print the Exact systemd Exit Fields
Turn a noisy service failure into four fields you can paste into an incident note.
systemctl show app-worker --property=Result,ExecMainCode,ExecMainStatus,NRestarts --no-pager
Check logrotate Timer Status
The timer may be disabled, missed, or failing.
systemctl status logrotate.timer --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.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.