发新话题
打印

强制linux重启或关闭

强制linux重启或关闭

Reboot linux forcibly

http://www.binarytides.com/linux-command-shutdown-reboot-restart-system/

The following command will forcefully reboot the machine. This is similar to pressing the power button of the CPU. No shutdown takes place. The system will reset instantly.

# reboot -f

------
https://major.io/2009/01/29/linux-emergency-reboot-or-shutdown-with-magic-commands/

reboot:
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

shutdown:
echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger

[ 本帖最后由 linda 于 2015-12-25 11:45 编辑 ]

TOP

发新话题