I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various scenarios are for using each of the available commands and their parameters.


The right way to shutdown Ubuntu using the CLI(Command Line Interface) is sudo shutdown now.

  • 4
    Wow! That was fast!. Just saw a similar question and was about to delete this one
    – muyiscoi
    Mar 2 '13 at 22:44
  • On my Ubuntu 12.04 system, this doesn't work. The command completes, but no shutdown is initiated. Adding -h doesn't change this. Dec 9 '15 at 15:34

You can shutdown safely running:

sudo poweroff

I suggest using shut down preceded with sync - probably old school but it commits unwritten data to disk - especially useful in multiuser systems. Linux System Administrators Guide

Not the answer you're looking for? Browse other questions tagged or ask your own question.