Section: List and Inspect Units

Show one property

bash
bash
systemctl show nginx -p ActiveState -p SubState
Explanation

Helpful in shell scripts and monitoring checks.

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 List and Inspect Units
Show low-level unit properties
Dump detailed properties for a unit.
OpenIn sheetbashsame section
List loaded units
Show active loaded units.
OpenIn sheetbashsame section
List service units
Filter unit list to services.
OpenIn sheetbashsame section
List all service unit files
Show loaded and unloaded service files.
OpenIn sheetbashsame section
List failed units
Show units in failed state.
OpenIn sheetbashsame section
Print unit file and drop-ins
Show the unit definition actually used by systemd.
OpenIn sheetbashsame section