mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 19:53:04 +00:00
Update cheatsheets
This commit is contained in:
22
tldr/linux/systemctl-import-environment
Normal file
22
tldr/linux/systemctl-import-environment
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl import-environment
|
||||
|
||||
> Import environment variables from the shell into systemd's environment.
|
||||
> See also: `show-environment`, `unset-environment`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20import-environment%0A%20%20%20%20%20%20%20%20%20%20%20%20VARIABLE%E2%80%A6%0A%20%20%20%20%20%20%20%20%20%20>.
|
||||
|
||||
- Import a variable:
|
||||
|
||||
`systemctl import-environment {{variable}}`
|
||||
|
||||
- Import multiple variables:
|
||||
|
||||
`systemctl import-environment {{variable_1 variable_2 ...}}`
|
||||
|
||||
- Import variables for user services:
|
||||
|
||||
`systemctl import-environment {{variable}} --user`
|
||||
Reference in New Issue
Block a user