sudo shutdown -P 300
Firstly, you need to have root access to use shutdown, hence my use of the sudo command. I used -P to indicate that I want to power off after shutdown (as opposed to rebooting, or 'halting'). Finally, I typed 300 to indicate that I want the computer to shutdown in 3.5 hours (300 minutes).
Another way you can use the command is by specifying the clock time at which you want your computer to shutdown in 24 hour format. So let's say you want your computer to shut down at 4:15pm:
sudo shutdown -P 16:15
Type that in and your computer will shut down at 4:15pm. That's it!
thanks a tonne!
ReplyDelete300 minutes is 5 hours, not 3.5 :-)
ReplyDeleteMany thanks for the tip, its very useful! Best regards, boris
ReplyDeleteI used "sleep 3h;halt" before.
ReplyDeleteI add "&" at the end on command at CentOS so the process sleep in background.
ReplyDeleteThank you!
and what if i want to cancel? You know, i want to see another episode of my favorite tv show ;]
ReplyDeleteshutdown -c
Deleteuseful thanks
ReplyDelete
ReplyDeleteHi, I am John working in IT company. Cause of busy I work in my home so, I need a high-configaration which is one of the
best computers.best computers.
So, I was feeling worried about the best computer. By friend suggest me to visit your website and got it. This is really good product.
Specially RAM, graphic, and all configaration are good. I am happy. I am happy.