systemctl-show

Show unit properties in machine-readable format

TLDR

Show manager properties
$ systemctl show
Show user manager properties
$ systemctl show --user
Show unit properties
$ systemctl show [unit]
Show specific properties
$ systemctl show [unit] -p [MainPID,ActiveState]
Show only the value of a specific property
$ systemctl show [unit] -p [MainPID] --value
Include empty properties
$ systemctl show -a [unit]

SYNOPSIS

systemctl show [OPTIONS] [PATTERN...|JOB...]

DESCRIPTION

systemctl show displays properties of units, jobs, or the service manager itself in a machine-readable format. Without arguments, it shows properties of the service manager.The output is suitable for parsing by scripts. Use `systemctl status` for human-readable output.

PARAMETERS

--user

Show user service manager properties
-a, --all
Include empty properties
-p, --property= NAME
Show only specified properties
--value
Print only the value, skip property name and "=" (useful with -p)
--no-pager
Disable pager

COMMON PROPERTIES

ActiveState - Current state (active, inactive, failed, activating, deactivating)LoadState - Load state (loaded, not-found, error, masked)SubState - More fine-grained state (running, dead, exited, etc.)MainPID - Main process IDExecMainStartTimestamp - Start timeWants, Requires, Conflicts - Unit dependency propertiesFragmentPath - Path to the unit file

INSTALL

sudo apt install systemd
sudo dnf install systemd
sudo pacman -S systemd
sudo zypper install systemd
brew install systemd
nix profile install nixpkgs#systemd

CAVEATS

Output format is key=value pairs. Some properties may be empty. For human-readable format, use `systemctl status` instead.

HISTORY

The show subcommand provides machine-parseable property access, enabling scripted queries and monitoring integration.

SEE ALSO

systemctl-status(1), systemctl-set-property(1), systemctl(1)