A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
/var/log/wtmp
日志文件中。
-bash/zsh: poweroff command not found # Windows (WSL2) sudo apt-get update sudo apt-get install upstart-sysv # Debian apt-get install sysvinit # Ubuntu apt-get install upstart-sysv # Arch Linux pacman -S systemd-sysvcompat # Kali Linux apt-get install runit-init # CentOS yum install usermode # Fedora dnf install systemd # Raspbian apt-get install upstart # Dockerfile dockerfile.run/poweroff
poweroff 命令发送 ACPI 信号,指示系统断电。
poweroff [OPTION]...
-n 关闭之前不同步 -p 当被称为halt时关闭电源 -v 增加输出,包括消息 -q 降低输出错误唯一的消息 -w 并不实际关闭系统,只是写入/var/log/wtmp文件中 -f 强制关机,不调用shutdown
[root@TestMaster ~] $ poweroff
poweroff 关闭系统电源:
poweroff
poweroff 停止系统(与 halt 相同)
poweroff --halt
poweroff 重新启动系统(与 reboot 相同)
poweroff --reboot
poweroff 立即关机而不联系系统管理员:
poweroff --force --force
poweroff 写入 wtmp 关闭条目而不关闭系统:
poweroff --wtmp-only