systemctl import-environment
linux
Import environment variables from the shell into systemd's environment. See also: `systemctl show-environment`, `systemctl unset-environment`.
More info →Examples (3)
Import a variable
systemctl import-environment variableImport multiple variables
systemctl import-environment variable_1 variable_2 ...Import variables for user services
systemctl import-environment variable --usermade by @shridhargupta | data from tldr-pages