halt can turn off the machine,
but shutdown now doesn't turn off ,it just logs the root off.
Anyone knows the reason?
|
but Anyone knows the reason? |
|||
|
|
|
On a modern Linux systems halt calls shutdown with a suitable argument -h (halt) or -r (reboot) these are the equivalent of runlevels 0 and 6. Running On Solaris 10/11 halt is quite brutal, it just flushes the disk caches and powers off the system - no attempt is made to run any scripts or shutdown smf facilities. Other systems may do things differently too. |
||||
|
|
|
I assume Linux? (Good practice to tell or at least tag the OS). 'shutdown now' puts the system in init 1, while 'shutdown -h now' halts it 'now'. From the manual of shutdown
|
|||
|
|
|
thats a "long time ago" commands. shutdown or poweroff -- turnoff computer halt -- prepares computer to be shutted down after user push the power button. |
|||
|
|