How to schedule shutdown or reboot on Linux

Even if you are using Linux Server edition, or Dekstop Edition you can shutdown your Computer or Server from shell.

Simply as root (or with sudo) type reboot , or halt and the computer will reboot or halt, emmediately. The command shutdown offers more flexibility with many more options for shutdown,halt,turn off,reboot...

The correct command is shutdown.

shutdown -P 18:15    the computer will turn off at 18:15 . shutdown -r now the computer will reboot now

OPTIONS
-r Requests that the system be rebooted after it has been brought down.

-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.

-H Requests that the system be halted after it has been brought down.

-P Requests that the system be powered off after it has been brought down.

-c Cancels a running shutdown. TIME is not specified with this option, the first argument is MESSAGE.

-k Only send out the warning messages and disable logins, do not actually bring the system down.

You have to specidy the time that the action will take place. after the option you can type

hh:mm e.g. 20:30

  e.g. 20 , which means that it will happen in 20 minutes

now which means it will action now

Posted on: 14/12/2009








0 Comments
If you want to leave a comment please Login or Register