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. |
the command is "shutdown". Do man shutdown for detail
|
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> |
Don't be embarrassed, i've heard at one point that Linus Torvalds himself once asked the same question. :D
|
Really? Wow. Sort of like Henry Ford asking "So. How do we start this auto-mo-bile?"
Thanks. |
init 0 -> for shutdown
init 6 -> for restart |
if shutdown don't work try halt -p or halt -P, can't remember which. it worked on my slack12.0 installation
|
I like "shutdown -r now" for the reboot function
|
All times are GMT -5. The time now is 10:58 PM. |