Back to commands

Linux Survival Basics

Read-only

Inspect the Unit File and Drop-ins Together

A service definition looks correct in the main unit, but a drop-in override may be changing the user, environment, or command.

Command

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 from memory after reading this; make a deliberate unit or drop-in change and reload systemd when applying a fix.

Expected output

The main service unit followed by drop-in override contents.

System impact

Read-only. Nothing changes. systemctl prints the effective unit file fragments and drop-ins in order.

Recovery / rollback: no state is changed.

When to use it

Use when status mentions a drop-in, a service changed after deployment, or the failure points at user, path, environment, or ExecStart.

When not to use it

Do not edit from memory after reading this; make a deliberate unit or drop-in change and reload systemd when applying a fix.

next steps

Related commands

Linux Survival Basics Read-only

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
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.