2

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?

7

halt will do what you're looking to do.

sudo halt

Otherwise I believe you wanted to do

sudo shutdown -h now

Source

  • -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
4

Try

sudo shutdown -h now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy