how to properly (or alternatively?) shutdown linux from terminal?

Posted on

Problem :

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?

Solution :

halt will do what you’re looking to do.

sudo halt

Otherwise I believe you wanted to do

sudo shutdown -h now



sudo shutdown -h now

Leave a Reply

Your email address will not be published. Required fields are marked *