Forcing Linux To Shutdown Or Reboot

shutdown -r NOW
halt
reboot

not working for you?

To force a shutdown:

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

And for a reboot:

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


Thanks to Nasser Heidari for the tip.

Leave a Reply