Shutdown with time through the terminal linux ubuntu
![](http://3.bp.blogspot.com/_3kXpyJOB1D4/S65Thed9-aI/AAAAAAAAAfs/IGct_BQNLJ8/s320/1.png)
Shutdown Timer On Ubuntu
-h = halt or power off after shutdown
-H = is almost equal to the above options
-P = power off after shutdown (almost as well)
-c = shutdown abort previous command
-v = or - verbose display more information
Maybe some time you've had it like this, computers must keep the flame because it is still doing a process (eg downloaded or are to render the video) but you can not stay in front of the computer, for example, had to sleep or go out. if so I left the computer stays on even though the process has finished work, this is certainly not efficient and wastes electricity. well the solution is to set the shutdown time, so even though the computer was left to die by itself according to the specified time eg downloading process will be completed in 2 hours, then the shutdown time can be set at 2 hours. on windows OS this can be done with the help of third-party program (third party) because by default Windows does not provide the application, I usually use a program called "shutter" which is free, but what about Linux?
Okay I'll share some tips, especially for ordinary users and newbies in the Linux world like me (who've geek would udah tau). set time on linux shutdown could have done easily, without any additional programs. we only need to do it through the terminal, do this: open a terminal through application menu> accessories> terminal (on ubuntu / GNOME desktop), after the open and then typing the following command:
$ Sudo shutdown-option-time messegesdescribes their okay, the sudo command is a command to go into root mode, then type shutdown followed by the option and the time after which the option can be added messege or message. for its own options can be selected from the following options:
-r = reboot or restart -h = halt or power off after shutdown
-H = is almost equal to the above options
-P = power off after shutdown (almost as well)
-c = shutdown abort previous command
-k = only display th message (messege)
-q = or - quiet minimize the appearance of the terminal-v = or - verbose display more information
-help = show help
Exampel :
![](http://2.bp.blogspot.com/_3kXpyJOB1D4/S65XYNo9qFI/AAAAAAAAAgM/DDyPENK1FTQ/s400/Screenshot-2.png)
![](http://3.bp.blogspot.com/_3kXpyJOB1D4/S65Yfe7VIjI/AAAAAAAAAgU/dqGy6vrfhJY/s400/Screenshot-3.png)
![](http://4.bp.blogspot.com/_3kXpyJOB1D4/S65Y6zfoRLI/AAAAAAAAAgc/Sj0FyQh5ym8/s400/Screenshot-4.png)
Then to his own time can use the + (xx min) or if you want to determine how many died in the clock can sign + (hours: minutes) in units of 24 hours. okay maybe you are still confused, we are straight into the examples. suppose you want to turn off the computer in 30 minutes ahead of time, simply typing the following command in a terminal:
$ Sudo shutdown -p +30![](http://2.bp.blogspot.com/_3kXpyJOB1D4/S65XYNo9qFI/AAAAAAAAAgM/DDyPENK1FTQ/s400/Screenshot-2.png)
so in the future 30 minutes your computer will die by itself, or such other examples you want to reboot the computer at 11:30 hours by adding a message at the end "half-dozen computer is going on reboot", ordered as follows:
$ Sudo shutdown-r +11:30 half a dozen computer is going on reboot![](http://3.bp.blogspot.com/_3kXpyJOB1D4/S65Yfe7VIjI/AAAAAAAAAgU/dqGy6vrfhJY/s400/Screenshot-3.png)
with the order then the computer will restart at the appointed time, and displays a message as it has been typed. You can also cancel the shutdown command had to type:
$ Sudo shutdown -c![](http://4.bp.blogspot.com/_3kXpyJOB1D4/S65Y6zfoRLI/AAAAAAAAAgc/Sj0FyQh5ym8/s400/Screenshot-4.png)
0 komentar:
Post a Comment