systemctl-show-environment
Display service manager environment
TLDR
Show system service manager environment
$ systemctl show-environment
Show user service manager environment$ systemctl show-environment --user
Filter for a specific variable$ systemctl show-environment | grep [PATH]
SYNOPSIS
systemctl show-environment [OPTIONS]
DESCRIPTION
systemctl show-environment displays all environment variables set in the systemd service manager's environment block. These variables are inherited by all services started by the manager.The output shows one variable per line in NAME=VALUE format. Use systemctl set-environment to add variables and systemctl unset-environment to remove them.
PARAMETERS
--user
Show user service manager environment--system
Show system manager environment (default)
CAVEATS
Shows the manager's environment, not the shell's environment. Variables set with `set-environment` or `import-environment` appear here.
HISTORY
The show-environment subcommand provides visibility into what environment variables services will inherit, useful for debugging service configuration.
