Shutdown/Reboot using ‘shutdown’

October 15th, 2006 liewsheng Posted in Admin, shutdown | Hits: 51698 | 9 Comments »

It have a lot of way to shutdown/reboot your machine, the easier way is using shutdown button in gnome or KDE menu ;p The another way is using ‘init’ which already intro in Shutdown Using ‘init’. Now I will intro a another command – ‘shutdown’.

‘shutdown’ have more option than init, you can specific how long you want to wait or the time you want to shutdown/reboot your machine.

To showndown your machine:

shutdown -h now "message"

this will shutdown after you have issues the command. The message can be any message you want send when shutdown/reboot. If you want specific a time, using:

shutdown -h hh:mm "message"

where hh is the hours and mm is the minutes you want shutdown.

To reboot:

shutdown -r now "message"

or

shutdown -r hh:mm "message"

You can also specify the relative time to perform the ‘shutdown’ command. For example, if you want shutdown the pc after 10 min:

shutdown -r +10 "message"

so what you think about the 'shutdown', Is it easy or powerful? I hope you all will enjoy using this command ;p

9 Responses to “Shutdown/Reboot using ‘shutdown’”

  1. Easy and powerful, especially when it is used with “crontab”

    Thanks for the example

  2. [...] For more detail examples of shutdown, continue to read here. [...]

  3. from crontab we can shutdown the system like this :

    sudo su -

    crontab -e

    * 8 * * * /sbin/shutdown -h now #shutdown at 8 o clock daily

  4. I like this fukin website. I’m learning, thank you :D

  5. Thats all cool but I seen in the manual something about

    a -t switch that supposed to be used with thetime…

    What gives?

  6. [...] systemu, po którym podajemy konkretn? godzin? wy??czenia. Wi?cej informacji pod tym adresem i w manualu. Podziel si?: Kategorie [...]

  7. [...] po którym podajemy konkretn? godzin? wy??czenia w formacie hh:mm. Wi?cej informacji pod tym adresem i w manualu. Kategorie: produktywno??. Tagi: linia polece?, wy??czanie systemu. Autor: [...]

  8. [...] po którym podajemy konkretn? godzin? wy??czenia w formacie hh:mm. Wi?cej informacji pod tym adresem i w [...]

  9. Just discovered this blog through Yahoo, what a way to brighten up my year!

Leave a Reply