I wrote sudo shutdown now on my ubuntu VM terminal and the results were not what i expected. I expected results similar to shutting down through the desktop GUI but instead it shut down rather quickly and brought me to a recovery prompt (i think it was apache's, maybe not) and started up again.

How do i shutdown the way i am expecting through the terminal?

link|improve this question

55% accept rate
feedback

2 Answers

up vote 8 down vote accepted

halt will do what you're looking to do.

sudo halt

Otherwise I believe you wanted to do

sudo shutdown -h now

Source

link|improve this answer
-1 for citing halt; halt is semantically meant to kill all processes immediately; shutdown ensures a clean shutdown. – Hello71 Jan 16 '11 at 2:36
feedback

Try

sudo shutdown -h now
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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