16

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.

muyiscoi
  • 692
  • 1
  • 8
  • 14
  • for shutdown without administrator password see [our Q&A on the dbus way](http://askubuntu.com/questions/1190/how-can-i-make-shutdown-not-require-admin-password). – Takkat Mar 03 '13 at 09:17

3 Answers3

20

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

gabemai
  • 550
  • 1
  • 6
  • 21
9

You can shutdown safely running:

sudo poweroff
Eric Carvalho
  • 53,609
  • 102
  • 137
  • 162
2

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

pfeiffep
  • 748
  • 7
  • 19