Home » Questions » Computers [ Ask a new question ]

How to restart computer without pressing 'reset button'

How to restart computer without pressing 'reset button'

Maybe a bash command or something?

Asked by: Guest | Views: 191
Total answers/comments: 4
Guest [Entry]

"Different versions of linux have different commands to shutdown and reboot the computer. Either provide the OS and distribution you're using, or try these commands:

shutdown -r now
init 6
reboot

If you want to only power it down, use:

shutdown -h now
halt
poweroff
init 0

Both sets of commands typically need sudo permission to execute."
Guest [Entry]

"If you have Magic SysRq enabled in your kernel, you can use alt+printscreen+(char) even if your system is relatively broken. (for example, if X is hosed)

Don't use this approach unless you can't do a normal shutdown -- shutdown -r now or similar is far better if you actually have a usable command line."
Guest [Entry]

"For SysV style: shutdown -g0 -y -i6

For BSD style: shutdown -r now"
Guest [Entry]

"Two sequential CTRL+ALT+DEL commands will reset Windows* machines.

* I haven't used this since XP..."