Page 1 of 1

shutdown question *solved

Posted: Mon Mar 03, 2008 12:32 am
by eeezzzeee
In looking up how to shut down my computer automatically at a sepcified time, I came across a command prompt of

sudo shutdown -h 00:00

I don't know much about terminal commands yet, and I want to make sure if I try this it is a safe command. real qucik question, is this a safe way to shut my computer down on a timer? is the shutdown -h command a proper way to do this?

sorry if is a basic question, but I want to learn to do things correctly and if there is a better/safer way of doing it, I'm all for it.

Re: quck question

Posted: Mon Mar 03, 2008 6:14 am
by Husse
sudo shutdown -h 00:00
will shut down the machine at midnight in a timely manner
PS What is a quck question?
Wouldn't it be better to call it shutdown question

Re: quck question

Posted: Mon Mar 03, 2008 6:48 am
by Zwopper
I use

Code: Select all

sudo shutdown -h 00:00 -P
-P for "Power down"
If you want to you can start a script at login that does this automagically!

Re: quck question

Posted: Mon Mar 03, 2008 7:45 am
by eeezzzeee
Sorry, next time I will put a more specific subject. :) The quick question part was a yes/no as to wether or not it was a safe way to shutdown my computer. I wasn't sure if it could mess anything up by shutting something down incorrectly.

Re: quck question

Posted: Mon Mar 03, 2008 7:55 am
by proxima_centauri
It's safe to do.

Re: quck question

Posted: Mon Mar 03, 2008 11:21 am
by MagnusB
When pressing Shut Down you issue:

Code: Select all

shutdown -t now
So, yes, that command is safe, just make sure you have saved all your data and closed most applications before the time of shutdown :)