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
.
https://github.com/mitchellh/vagrant/issues/575
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 |
The correct command (verified from console) is:
this does a clean shutdown AND turns off the box.