shutdown question *solved

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
eeezzzeee
Level 3
Level 3
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

shutdown question *solved

Postby eeezzzeee » Mon Mar 03, 2008 12:32 am

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.
Last edited by eeezzzeee on Mon Mar 03, 2008 3:51 pm, edited 1 time in total.
"If it's stupid and it works.... it's not stupid"

Husse
Level 23
Level 23
Posts: 19593
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: quck question

Postby Husse » Mon Mar 03, 2008 6:14 am

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

User avatar
Zwopper
Level 10
Level 10
Posts: 3077
Joined: Fri Nov 30, 2007 12:20 pm
Location: Deep in the Swedish woods

Re: quck question

Postby Zwopper » Mon Mar 03, 2008 6:48 am

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!
Image
My artwork at deviantART | My Band - Electric Alchemea
CREA DIEM!

Lenovo U330P | i5 | 16GB | 128GB - SSD | Ubuntu 16.04

User avatar
eeezzzeee
Level 3
Level 3
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Re: quck question

Postby eeezzzeee » Mon Mar 03, 2008 7:45 am

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.
"If it's stupid and it works.... it's not stupid"

User avatar
proxima_centauri
Level 11
Level 11
Posts: 3969
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: quck question

Postby proxima_centauri » Mon Mar 03, 2008 7:55 am

It's safe to do.

MagnusB
Level 6
Level 6
Posts: 1253
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: quck question

Postby MagnusB » Mon Mar 03, 2008 11:21 am

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 :)
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin


Return to “Newbie Questions”

Who is online

Users browsing this forum: Baidu [Spider], jimallyn, tlaz and 11 guests