mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 07:01:32 +00:00
Update cheatsheets
This commit is contained in:
22
tldr/linux/systemctl-unset-environment
Normal file
22
tldr/linux/systemctl-unset-environment
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl unset-environment
|
||||
|
||||
> Unset one or more service manager environment variables.
|
||||
> This undoes the effect of `systemctl set-environment`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
|
||||
|
||||
- Unset a single environment variable:
|
||||
|
||||
`systemctl unset-environment {{var}}`
|
||||
|
||||
- Unset multiple environment variables at once:
|
||||
|
||||
`systemctl unset-environment {{var1 var2 ...}}`
|
||||
|
||||
- Unset an environment variable in the user service manager:
|
||||
|
||||
`systemctl --user unset-environment {{var}}`
|
||||
Reference in New Issue
Block a user