Forcing Linux To Shutdown Or Reboot

shutdown -r NOW

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.

Tagged with:
Posted in Command Line Tricks, Servers, Tech Blog

Leave a Reply

Your email address will not be published. Required fields are marked *