Unix/Linux

On Ubuntu `sudo halt` doesn't poweroff the box

steloflute 2012. 7. 15. 13:02

https://github.com/mitchellh/vagrant/issues/575


The correct command (verified from console) is:

sudo poweroff

this does a clean shutdown AND turns off the box.

Actually, I shouldn't really be using halt at all. I'm going to look into what the best suitable/portable option is for shutting down linux but I think its shutdown -h.

The following command works for me:

sudo shutdown -h now

However the man page says:

  • -h Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system.
  • -P Requests that the system be powered off after it has been brought down.

Then it seem that the equivalent of poweroff is shutdown -P now. However -P seems to be less widely supported.




'Unix/Linux' 카테고리의 다른 글

How do I find out what shell I’m using?  (0) 2012.07.18
safe rm  (0) 2012.07.18
Cygwin SSHD HowTo (On Windows)  (0) 2012.07.13
Bash For Loop Examples  (0) 2012.06.28
Bash Shell: Ignore Aliases / Functions When Running A Command  (0) 2012.06.28