Files
cheatsheet-tldr/tldr/linux/systemctl-exit
2026-01-13 00:19:20 +00:00

22 lines
534 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/latest/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`