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
Try shutdown --help for more information. – ændrük Jan 27 '11 at 22:15
You can mark multiple lines of code in the shell with the mouse easily. To paste the marked lines you just have to click the middle-button in the target place. That's much more easy than producing, sending, and lastly reading a graphical screenshot. – user unknown Feb 2 '11 at 6:41
up vote 6 down vote accepted

You want -P, not -p. It's case sensitive. Also realize that you'll have to be root to shutdown like that.

For the time, there are different ways to enter. Taken from man shutdown:

       TIME  may  have  different  formats, the most common is simply the word
   'now' which will bring the system down immediately.  Other  valid  for‐
   mats  are  +m,  where m is the number of minutes to wait until shutting
   down and hh:mm which specifies the time on the 24hr clock.


$ sudo shutdown -P 20:30
[sudo] password for ward: 

Broadcast message from ward@sekhmet
(/dev/pts/0) at 20:14 ...

The system is going down for power off in 16 minutes!
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.