LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you shut down core 6? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-shut-down-core-6-a-499814/)

greggsbluer6 11-08-2006 01:23 PM

How do you shut down core 6?
 
I just installed Core 6 and I can not figure out how to shut it down?? Shutdown -h is not a known command and all I can do is logout! If I logout, X closes and I’m at the command prompt, if I issue the halt command it starts but never completes and I have to cycle the power.. I will admit that I am a bit of a n00b but it’s ridiculous that they hide the power off option. Am I supposed to just let it run forever?

Thanks in advance and you CAN stop laughing now by the way...

G

b0uncer 11-08-2006 01:33 PM

Quote:

Thanks in advance and you CAN stop laughing now by the way...
No laughing, really, I had shutdown lost when I first tried RedHat, too. Probably it's just not in your $PATH, so you'll need to run it with full path:
Code:

/sbin/shutdown -h
or
Code:

/usr/sbin/shutdown -h
might help. If you still can't found it, try
Code:

locate shutdown
first.

Halt command will halt your pc, but not turn the power off unless ACPI (or something else) is handling the power cutting. Older computers, I remember, didn't turn off automatically, Windows 95 for example just showed a "You can safely shut pc down" -type message after which user had to press the button. Nowadays automatic power management things handle that so that when an operating system wants the power to go down, the machine can do it. See if you have acpi loaded and enabled, firstly.

Also try
Code:

/sbin/poweroff

greggsbluer6 11-08-2006 01:42 PM

Believe it or not it, shutdown

greggsbluer6 11-08-2006 01:44 PM

Thanks again!
 
Believe it or not it, shutdown –h with the whole path will not work. Its there but it refuses to work for some reason. I do have good news though, the power off command works great! The last time I used redhat there was a shutdown option in X right? I distinctly remember in redhat 9 if you clicked on the hat icon there was an option to shutdown the system.

Thanks again for you help!!! Now I can turn off my laptop to take it with me 

xpucto 11-08-2006 03:19 PM

Quote:

Originally Posted by greggsbluer6
Believe it or not it, shutdown –h with the whole path will not work.

first you have to be root to shut it down.
second: for the command shutdown you have to precise the time when it has to shut down. If you want it to shut down immediately, the type: /sbin/shutdown -h now

another command would be: /sbin/init 0


All times are GMT -5. The time now is 03:10 PM.