How to set shutdown time on ubuntu
Hi all,
So today I think I want to share a very simple tips on how to shutdown your Ubuntu system automatically using time as a trigger.
Alright, firstly, open up terminal (Yes, it is in your Application-Accessories menu). * In Ubuntu Natty you can just press [ALT+F2] and click on Run In Terminal and key in your password.
Now type this one line code, and press enter key. Key in your password if instructed to do so:
sudo shutdown -h +30
Okay, I'll explain what it do briefly.
sudo
This command is needed to run any root level task such as shutdown, install or remove programs.
shutdown
This is the real command to shutdown your computer.
-h
This is the option to the shutdown command above. The '-h' option make your computer shutdown or halt permanently. But, if you are only going to restart or reboot your computer, you can change the option to '-r'. e.g: sudo shutdown -r now
+30
This is the time option to the command shutdown. '+30' means Ubuntu will be halt or shutdown permanently in 30 minutes. You can change it to +60, +10, +1 or +100 if you like. You can also use the 24 hour time format such as sudo shutdown -h 23:12 which means your computer will be shutdown at 11.12 p.m. And yes, you can restart or shutdown your machine immediately with the time option 'now'.
But if you like to cancel your shutdown order, just press CTRL+C on the terminal.
So today I think I want to share a very simple tips on how to shutdown your Ubuntu system automatically using time as a trigger.
Alright, firstly, open up terminal (Yes, it is in your Application-Accessories menu). * In Ubuntu Natty you can just press [ALT+F2] and click on Run In Terminal and key in your password.
Now type this one line code, and press enter key. Key in your password if instructed to do so:
sudo shutdown -h +30
Okay, I'll explain what it do briefly.
sudo
This command is needed to run any root level task such as shutdown, install or remove programs.
shutdown
This is the real command to shutdown your computer.
-h
This is the option to the shutdown command above. The '-h' option make your computer shutdown or halt permanently. But, if you are only going to restart or reboot your computer, you can change the option to '-r'. e.g: sudo shutdown -r now
+30
This is the time option to the command shutdown. '+30' means Ubuntu will be halt or shutdown permanently in 30 minutes. You can change it to +60, +10, +1 or +100 if you like. You can also use the 24 hour time format such as sudo shutdown -h 23:12 which means your computer will be shutdown at 11.12 p.m. And yes, you can restart or shutdown your machine immediately with the time option 'now'.
But if you like to cancel your shutdown order, just press CTRL+C on the terminal.
thanks ... this really worked...
ReplyDeleteglad it worked for you
ReplyDeleteyou can't close the terminal window though or it will kill the timer, right?
ReplyDeleteYes, it will.
ReplyDeleteYou could press Ctrl+Alt+F1 and issue the same command after login with your username and password.
For example:
In terminal : sudo shutdown -h +30
change back to display, press Ctrl+Alt+F7 and continue your work for another 30 minutes before your computer shut down..
Covers are accessible that accommodate up to 5 switches inside a single location.
ReplyDeleteBut, let me get in touch with to thoughts
you that acquiring just about every little thing brand new is so impractical.
There's a practice of making use of this specific stuff in unique components of a residence.
Here is my web blog; room decor games for kids
One needs to plan about certain things before making
ReplyDeletethe HCG Seattle plan for his or her participation. It's important to get enough calories spaced throughout the day to keep your fire stoked. Although some people swear by a certain plan, some plans need to be tailored to suit individuals because we all have different needs for our bodies.
Here is my blog - weight loss programs cost comparison
There are special facilities for the online studying, that became very popular now
ReplyDeletea days. You also want to have the ability to enable
them to make smart choices which will result in
a happy client. She has diverse experience on working on many projects in India and Internationally.
Also visit my web blog bedroom decorating ideas
Incredible points. Great arguments. Keep up the
ReplyDeletegood spirit.
Here is my weblog ... allaboutthecozy.blogspot.com
The marriage reception is where every p guest will spend most of their time in your marriage that is why it should be best decorated.
ReplyDeleteYour motif can be anything an animal, a flower, an object,
a landmark, a precious stone, or a fruit. com that provides experts' tips on Indian bridal make up, dresses, venues, etc.
Feel free to visit my homepage; Rustic Wedding Decor For Sale Photograph
You will discover entire sites about this topic, so
ReplyDeletethere is a lot to view. The toppings include chocolate curls
and chocolate roses, gold rings, a figurine of a couple,
crystals and also a horse shoe. Most professional Asian wedding cakes designers will be able
to help you arrive at a design that fits in with your budget.
My blog post ... wedding cake decor ny