Shutdown/Reboot using ‘shutdown’
October 15th, 2006 liewsheng Posted in Admin, shutdown | Hits: 48426 | 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







September 12th, 2007 at 11:43 pm
Easy and powerful, especially when it is used with “crontab”
Thanks for the example
September 25th, 2007 at 2:13 am
[...] For more detail examples of shutdown, continue to read here. [...]
January 6th, 2009 at 6:02 am
from crontab we can shutdown the system like this :
sudo su -
crontab -e
* 8 * * * /sbin/shutdown -h now #shutdown at 8 o clock daily
January 13th, 2009 at 11:56 am
I like this fukin website. I’m learning, thank you :D
May 12th, 2009 at 9:32 pm
Thats all cool but I seen in the manual something about
a -t switch that supposed to be used with thetime…
What gives?
February 18th, 2012 at 1:58 am
[...] systemu, po którym podajemy konkretn? godzin? wy??czenia. Wi?cej informacji pod tym adresem i w manualu. Podziel si?: Kategorie [...]
April 16th, 2012 at 6:41 am
[...] 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: [...]
April 16th, 2012 at 7:01 am
[...] po którym podajemy konkretn? godzin? wy??czenia w formacie hh:mm. Wi?cej informacji pod tym adresem i w [...]
May 28th, 2012 at 7:27 am
Just discovered this blog through Yahoo, what a way to brighten up my year!