What is the difference between the halt and shutdown commands?
|
|
|
Generally, one uses the As such, the shutdown command has to be used like this to halt/switch off the computer immediately (on Linux and FreeBSD at least):
Or to reboot it with a custom, 30 minute advance warning:
After the delay, Once system processes have been killed and filesystems have been unmounted, the system halts/powers off or reboots automatically. This is done using the On Linux, if |
|||
|
|
|
I suspect this is somewhat dependant on which version of UNIX/Linux you are using. On Centos (and I expec other modern Linux) halt calls shutdown (providing you're not at runlevel 0 or 6) so your system will be shutdown cleanly. On Solaris 10 halt is more brutal, it just flushes the disk caches and powers off the system - no attempt is made to run any scripts or shutdown smf facilities. |
|||
|
|
|
In linux, "halt" and "reboot" are aliases of the shutdown command -- |
|||||
|