LinuxCommandLibrary

systemctl-show

Show unit properties in machine 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 [Wants,Conflicts,...]
copy
Include empty properties
$ systemctl show -a
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
--no-pager
Disable pager

COMMON PROPERTIES

ActiveState - Current state (active, inactive, failed)
LoadState - Load state (loaded, not-found, error)
MainPID - Main process ID
ExecMainStartTimestamp - Start time

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community