LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shutdown command? (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-command-203528/)

MikeZila 07-10-2004 06:10 PM

Shutdown command?
 
I know this is a dumb problem to have, but I don't know the command to shutdown a Linux box from the console. I always just hit Crl+Alt+Del, waited for it to reboot to the boot loader, and then hit the power switch. I realized that I didn't know the command when my buddy was sitting at my computer and asked me how to turn it off. It was a little embarassing to have to say "I don't know."

Please advise.

DropSig 07-10-2004 06:28 PM

the command is "shutdown". Do man shutdown for detail

Peacedog 07-10-2004 06:29 PM

shutdown -h now

that should do the trick.

<edit>i'm always finishing the race last. guess it's ok, as long as i finish. :) </edit>

p-static 07-10-2004 09:25 PM

Don't be embarrassed, i've heard at one point that Linus Torvalds himself once asked the same question. :D

MikeZila 07-10-2004 09:53 PM

Really? Wow. Sort of like Henry Ford asking "So. How do we start this auto-mo-bile?"

Thanks.

praveen_b744 07-27-2008 12:44 AM

init 0 -> for shutdown
init 6 -> for restart

colorpurple21859 07-27-2008 04:33 PM

if shutdown don't work try halt -p or halt -P, can't remember which. it worked on my slack12.0 installation

john test 07-27-2008 05:09 PM

I like "shutdown -r now" for the reboot function


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