mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
529 B
Plaintext
22 lines
529 B
Plaintext
---
|
||
syntax: markdown
|
||
tags: [tldr, linux]
|
||
source: https://github.com/tldr-pages/tldr.git
|
||
---
|
||
# systemctl exit
|
||
|
||
> Ask the service manager to quit.
|
||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#exit%20EXIT_CODE>.
|
||
|
||
- Exit the user service manager:
|
||
|
||
`systemctl exit --user`
|
||
|
||
- Exit the user service manager with a specific exit code:
|
||
|
||
`systemctl exit {{code}} --user`
|
||
|
||
- Ask the container’s service manager to exit (equivalent of `systemctl poweroff` if not in a container):
|
||
|
||
`systemctl exit`
|