Knowledge base dedicated to Linux and applied mathematics.
Home > Linux > Commande du jour > How to shut down or reboot: shutdown command
All the versions of this article: <English> <français>
How to shut down my computer at 18h30? How to reboot in console mode ?
You must be root
nadir@ipower:~$ sudo -s
Password:
root@ipower:~#
Option -r now(reboot now) allows you to reboot now
root@ipower:~# shutdown -r now
Option -h now(halt now) allows you to stop now
root@ipower:~# shutdown -h now
To reboot your computer in 13 minutes:
root@ipower:~# shutdown -r +13
Broadcast message from root (pts/1) (Mon Oct 17 18:03:22 2005):
The system is going DOWN for reboot in 13 minutes!
To shut down your computer in 13 minutes:
root@ipower:~# shutdown -h +13
Broadcast message from root (pts/1) (Mon Oct 17 18:02:58 2005):
The system is going DOWN for system halt in 13 minutes!
To reboot your computer at 18:30:
root@ipower:~# shutdown -r 18:30
Toshut down your computer at 18:30
root@ipower:~# shutdown -h 18:30
To cancel reboot or shutdown schedules, you must use -c option
root@ipower:~# shutdown -c