About man shutdown
at:
it indicates:
...
-H, --halt
Halt the machine.
-P, --poweroff
Power-off the machine (the default).
-r, --reboot
Reboot the machine.
-h
Equivalent to --poweroff, unless --halt is specified.
...
Therefore the two following commands are the same (taking in consideration the default time about from now that is +1
)
shutdown
shutdown -P
But what about shutdown -h
?
Question
- When is useful the
-h
option? or How does-h
work?
shutdown now
will turn the power off, somewhere only "halt" the system, meaning all the processes will be terminated, but power won't be turned off and one can only do that by pressing the power button, or reboot. Same goes forshutdown -h now
. – Vilinkameni Apr 17 '22 at 09:35