Print the unit file and drop-ins defining a service.

Section: systemd Service Process Views

Show unit definition

bash
bash
systemctl cat nginx
Explanation

Print the unit file and drop-ins defining a service.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing systemd Service Process Views
Show service status
Show status, recent logs, and the service main PID.
OpenIn sheetbashsame section
Show main PID only
Extract the tracked main PID for a unit.
OpenIn sheetbashsame section
List running services
List active services managed by systemd.
OpenIn sheetbashsame section
Show logs for a service
Read recent logs associated with one systemd unit.
OpenIn sheetbashsame section
Show logs for a PID
Filter the journal by process ID.
OpenIn sheetbashsame section
Start a service
Start a service unit.
OpenIn sheetbash1 tag match