shutdown

From WebHostingNeeds.com
Jump to: navigation, search
-h     Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system.
-P     Requests that the system be powered off after it has been brought down.


Shutdown computer after X minutes

sudo shutdown -h 180

Example

[email protected]:~ $ sudo shutdown -h 180
[sudo] password for boby: 

Broadcast message from [email protected]
	(/dev/pts/14) at 21:16 ...

The system is going down for halt in 180 minutes!
^Cshutdown: Shutdown cancelled
[email protected]:~ $

Shutdown On Specified Time

sudo shutdown -h 17:00

This will shutdown PC on 17:00 hours (5 PM).



linux