systemctl import-environment
Import environment variables from the shell into systemd's environment. See also:
systemctl show-environment,systemctl unset-environment. More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#import-environment VARIABLE….
- Import a variable:
systemctl import-environment
- Import multiple variables:
systemctl import-environment
- Import variables for user services:
systemctl import-environment --user
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
