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.
    
Try shutdown --help for more information. –  ændrük Jan 27 '11 at 22:15
1  
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
add comment

1 Answer 1

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.

Example:

$ 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
add comment

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.