Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 22:29

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


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.