Shutdown – Difference Between Menu Shutdown and ‘shutdown -h now’

11.10shutdown

What is the difference between the shutdown menu item and shutdown -h now?
The former sometimes hangs up my laptop on Ubuntu 11.10.

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 also reboot) merely sends signals to all running programs. They don't have a chance to query the user if they have unsaved files. However, sending the poweroff command will work in more situations because of this.