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.

Always I have to use sudo poweroff or sudo shutdown -h now to shut down my PC because the "Shut down" button is not working. According to this post sudo shutdown -h now is safe. But what about sudo poweroff? Moreover, would you recomend to use sudo poweroff or sudo shutdown -h now? I'm using 12.04.

share|improve this question
    
A better question would be 'How to get my Shut Down button to work?, otherwise it might just be marked as a duplicate of your linked question. –  Wilf Feb 8 at 22:29

1 Answer 1

See here for an explanation of the differences between shutdown and poweroff.

As you can see, in your situation poweroff is essentially just invoking shutdown. These are both safe (if you've saved important data and whatnot), SIGTERM (which tells processes to gracefully exit) is sent a few seconds before SIGKILL so that there shouldn't be any corruption.

Pressing the "Shut Down" button probably just calls one of these utilities. You should probably figure out why that's not working.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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