LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-show

Show unit properties in machine-readable format

TLDR

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

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

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

Copied to clipboard
Kai