mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
23 lines
656 B
Plaintext
23 lines
656 B
Plaintext
---
|
|
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 unset-environment {{var}} --user`
|