← 返回命令列表

Linux command

systemctl-exit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

systemctl exit --user

Example

systemctl exit [code] --user

Example

systemctl exit

说明

systemctl exit asks the service manager to quit. When used with `--user`, it terminates the per-user systemd instance and all user services. When used without `--user` in a container, it cleanly shuts down the container. On a regular system without `--user`, this is equivalent to `systemctl poweroff`.

参数

--user
Exit the user service manager

FAQ

What is the systemctl-exit command used for?

systemctl exit asks the service manager to quit. When used with `--user`, it terminates the per-user systemd instance and all user services. When used without `--user` in a container, it cleanly shuts down the container. On a regular system without `--user`, this is equivalent to `systemctl poweroff`.

How do I run a basic systemctl-exit example?

Run `systemctl exit --user` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --user do in systemctl-exit?

Exit the user service manager