I want to shutdown my computer as if power was cut off (don't ask me why). How do I do this under Linux?
feedback
|
migrated from stackoverflow.com Sep 30 '10 at 20:18
This question came from our site for professional and enthusiast programmers.
|
If your system has it, the poweroff command should do it:
| |||||
feedback
|
|
you could just panic it, depending on what you wish to achieve.
| |||
|
feedback
|
|
you can echo 'o' (poweroff) to /proc/sysrq-trigger:
| |||
|
feedback
|
|
| |||||
feedback
|
