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 this

shutdown question *solved

Postby eeezzzeee on 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"
User avatar
eeezzzeee
Level 3
Level 3
 
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Linux Mint is funded by ads and donations.
 

Re: quck question

Postby Husse on 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
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: quck question

Postby Zwopper on 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 Tweet
CREA DIEM!
Lenovo E320 | 8GB | 512GB Samsung 840 PRO - SSD | Ubuntu 14.04
User avatar
Zwopper
Level 10
Level 10
 
Posts: 3101
Joined: Fri Nov 30, 2007 12:20 pm
Location: Deep in the Swedish woods

Re: quck question

Postby eeezzzeee on 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
eeezzzeee
Level 3
Level 3
 
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Re: quck question

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

It's safe to do.
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: quck question

Postby MagnusB on 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
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway


Return to Newbie Questions

Who is online

Users browsing this forum: krh1044, Reorx and 23 guests