4 ms·
> shutdown -r now I know this is in lots of textbook examples but I didn't think anyone ever actually typed this. I've always used 'halt' or 'reboot'
by hn8305823 3y ago
> shutdown -r now
I know this is in lots of textbook examples but I didn't think anyone ever actually typed this. I've always used 'halt' or 'reboot'
- toast0 3y agoreboot and halt have a history of being less graceful on some systems, and I've been bitten. For FreeBSD, I think reboot skips shutdown scripts, doesn't notify all terminals, etc; just kill everything, sync the disk and reboot. That's not ungraceful, but it's not exactly pleasant. OTOH, my openwrt device doesn't have a shutdown binary, just a reboot binary.
- rjsw 3y agoUsing 'halt' or 'reboot' won't run all the scripts needed to shut down cleanly, the correct command to use is 'shutdown -r now'.
- red-iron-pine 3y agoIIRC, 'reboot' is aliased to 'shutdown -r now' in several modern distros
- JohnFen 3y agoI use "shutdown -r now" instead of "reboot" because "halt" or "reboot" is not universally available, but shutdown mostly is.