Shutdown computer using terminal (Ubuntu)

Shutdown command

Enter the command below:
root@penreturns:~$ sudo shutdown -h now
or
root@penreturns:~$ sudo shutdown -h 0
Shutdown computer at a scheduled time

if you want to shutdown command at a scheduled time enter the following command

root@penreturns:~$ sudo shutdown -h 12:00 "System is shutting down"
This will shutdown your computer on 12pm with sending this message to all user.

You can also use power off or halt command to do this.
root@penreturns:~$ sudo halt
or
root@penreturns:~$ sudo poweroff

Reboot computer

Enter the command below:
root@penreturns:~$ sudo reboot
or
root@penreturns:~$ sudo shutdown -r 0
Enjoy! Rccool !
*copy code without root@penreturns:~$

1 comment

penreturns | 20 February 2012 at 23:47

test comment

Post a Comment