Linux command
systemctl-poweroff 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Power off
systemctl poweroff
Force
systemctl poweroff -f
Example
systemctl poweroff -f --no-wall
说明
systemctl poweroff shuts down the system and powers off the machine. It gracefully stops all services, unmounts filesystems, and then signals the hardware to power down. With `--force`, services are not gracefully stopped. With double `--force`, filesystems aren't unmounted, risking data loss.
参数
- -f, --force
- Skip graceful service shutdown
- --force --force (-ff)
- Immediate poweroff without cleanup (dangerous)
- --no-wall
- Don't send wall message to logged-in users
- --when _TIME_
- Schedule poweroff at specific time
FAQ
What is the systemctl-poweroff command used for?
systemctl poweroff shuts down the system and powers off the machine. It gracefully stops all services, unmounts filesystems, and then signals the hardware to power down. With `--force`, services are not gracefully stopped. With double `--force`, filesystems aren't unmounted, risking data loss.
How do I run a basic systemctl-poweroff example?
Run `systemctl poweroff` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --force do in systemctl-poweroff?
Skip graceful service shutdown