I just want to know difference between in
rebootinit 6shutdown -r now
and which is the safest and the best?
|
|
|
There is no difference in them. Internally they do exactly the same thing:
Today there is not much difference as both commands do exactly the same, and they respect the init scripts used to start services/daemons by invoking the shutdown scripts for them. Except for There is a small explanation taken from manpages of why the
-f, --force
Force immediate halt, power-off, reboot. Don't contact the init system.
Edit: Forgot to mention, in upcoming RHEL distributions you should use the new |
||||
|
|
|
Long story short, if you only use them for reboot, as you said, they are equally safe. As for best...there is no such thing. |
|||||||||
|
|
when you call NOTE: difference between shutdown and reboot : shutdown is secure! |
|||||||||||||
|