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

INSTALL

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

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid