What is the difference between the shutdown menu item and shutdown -h now
?
The former sometimes hangs up my laptop on Ubuntu 11.10.
Shutdown – Difference Between Menu Shutdown and ‘shutdown -h now’
11.10shutdown
Related Question
- Shutdown – Difference Between Shutdown and Poweroff Commands
- How to Set Power Button to ‘shutdown -h now’ Instead of Graphical Shutdown Menu
- Shutdown – Difference Between ‘halt’ and ‘shutdown now’
- Ubuntu – the difference between reboot and shutdown -r
- Shutdown – Fix Ubuntu 16.04 Skylake Not Shutting Down or Restarting
Best Answer
The shutdown menu item requests the graphical system to shutdown cleanly. Programs that have files to save, for example, have an opportunity to ask the user what to do.
shutdown -h now
(synonym:poweroff
; see alsoreboot
) merely sends signals to all running programs. They don't have a chance to query the user if they have unsaved files. However, sending thepoweroff
command will work in more situations because of this.