PDA

View Full Version : [ubuntu] command to shutdown 8.10 server



pshootr
December 15th, 2008, 10:17 PM
What is a easy command to tell the server to shutdown? None of my searches have given a clear indication of such command.

albandy
December 15th, 2008, 10:19 PM
sudo shutdown

bumanie
December 15th, 2008, 10:20 PM
Try this
sudo shutdown -h now

s3a
December 15th, 2008, 10:21 PM
What's the difference between those and sudo poweroff?

louistan3
December 15th, 2008, 10:22 PM
sudo halt now works as well i think.

davec64
December 15th, 2008, 10:27 PM
From: http://www.oreillynet.com/linux/cmd/cmd.csp?path=p/poweroff


poweroff

poweroff [options]

System administration command. Close out filesystems, shut down the system, and power off. Because this command immediately stops all processes, it should be run only in single-user mode. If the system is not in runlevel 0 or 6, poweroff calls shutdown -h, then performs a poweroff.


Hope that helps!

albandy
December 15th, 2008, 10:28 PM
with shutdown you can specify what to do: halt, power off the computer, reboot...
poweroff is like an alias to shutdown -h now
reboot is like shutdown -r now will reboot de computer
but with shutdown you can specify the time, for example:
shutdown -h 60 will poweroff the computer in 60 minutes

BrandonBan6
December 15th, 2008, 10:33 PM
man shutdown

Gives a good run down of the shutdown command.

pshootr
December 15th, 2008, 10:33 PM
Thank you for all the replies. I have just been hitting the power button. :-\"