On Friday I was downloading some files on my Netbook (running Ubuntu Remix 10.04) and was not planning to stick around for the downloads to finish (it was already close to 7pm, I needed to get home for the weekend). I didn’t want to leave it running all weekend and I still had another hour to go before my downloads finished…
What to do?
Well I decided to initiate a delayed shutdown of my system. Since the downloads had about 1hr and 15 minutes left, I decided to be extra safe and set the shutdown for an extra 30 minutes after that… Here’s how I did it:
In your terminal, run the following command:
sudo shutdown -h 20:45 "See you on Monday!"
you can change the time to fit your needs and change the message (between the quotes) to whatever you like or leave it out as the message is optional.
You could also set it to shutdown by using a slightly different format, like this:
sudo shutdown -h +120 "Shutting down in 2hrs -- or 120 minutes"
This works on Linux and Mac. If you want to do this on Windows you could try something like this (if you are an admin):
at 20:45 shutdown /l /r /y /c
But I cannot vouch for how effective this will be (on Windows I mean) as it may only shutdown the OS not the machine/computer…