Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by fossfreedom Mar 3 '13 at 17:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
for shutdown without administrator password see our Q&A on the dbus way. –  Takkat Mar 3 '13 at 9:17

3 Answers 3

up vote 5 down vote accepted

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

share|improve this answer
3  
Wow! That was fast!. Just saw a similar question and was about to delete this one –  muyiscoi Mar 2 '13 at 22:44

You can shutdown safely running:

sudo poweroff
share|improve this answer

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

share|improve this answer

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