Is there any difference between shutdown -h now and init 0, init 6 and shutdown -r now?

0

As I know by now, shutdown call init to change runlevel to stop the system running and shutdown will give some time for the system to do some other cleaning work. I am not sure whether I am right. What I wanna know is if I set TIME to now Whether shutdown works same as init 0. It is same question with init 6 and shutdown -r now. Thanks comes first!

user3872279

Posted 2014-08-20T02:40:12.687

Reputation: 625

Answers

-2

Shutdown -h command is used for hibernate the system. Shutdown -r command is used to restart the system. So all the differences are easy to understand by run as cmd and then type shutdown.exe all the switches are now load on screen.

Ankit Yadav TrK

Posted 2014-08-20T02:40:12.687

Reputation: 9

This does not answer the question. – Jan Doggen – 2014-09-24T06:29:12.757

@ankit-yadav-trk it's wrong, it does not hibernate the system, but it shutdown it invoking the init 0 (plus other "social" tasks). – tmow – 2018-05-04T09:06:44.443