# 立刻关机
shutdown -h now
# 立刻重启
shutdown -r now
shutdown命令
shutdown [OPTIONS...] [TIME] [WALL...]
Shut down the system.
--help Show this help
-H --halt Halt the machine
-P --poweroff Power-off the machine
-r --reboot Reboot the machine
-h Equivalent to --poweroff, overridden by --halt
-k Don't halt/power-off/reboot, just send warnings
--no-wall Don't send wall message before halt/power-off/reboot
-c Cancel a pending shutdown
本文详细介绍了Linux系统中使用shutdown命令进行关机、重启和取消待定关机操作的方法。包括立即关机、立即重启、发送警告信息而不执行关机等选项,以及如何取消正在进行的关机流程。
3107

被折叠的 条评论
为什么被折叠?



