You are not logged in.
Pages: 1
what is the shutdown command to turn off the computer from the command promt ?
Last edited by mivison (2007-09-09 06:07:32)
Offline
(as root)
shutdown now
-or-
shutdown -r now (will restart)
Dual Boot: Arch Linux/Wolvix Cub - 700 MHz AMD Duron - 256MB RAM - 10GB Hard Drive - 8MB AGP
Ubuntu 7.04 - 450MHz Pentium III - 384MB RAM - 10GB Partition - 32MB AGP
Offline
thanks
Offline
i find that "poweroff" works a little better because it will stop all of your daemons and do other good shutting down things
Offline
sudo halt ftw.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Offline
So which method is best/safest?
Dual Boot: Arch Linux/Wolvix Cub - 700 MHz AMD Duron - 256MB RAM - 10GB Hard Drive - 8MB AGP
Ubuntu 7.04 - 450MHz Pentium III - 384MB RAM - 10GB Partition - 32MB AGP
Offline
So which method is best/safest?
Well, to quote the halt-manpage:
If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the shutdown(8) manpage.
Thus, if you are using your computer in any normal and sane way, halt just calls shutdown so there is no difference
/sbin/poweroff is a symlink to halt, so there is no difference either.
In other words, there is no better one, all are alike for almost all use-cases.
halt does differ when it is called from runlevels 0 and 6, but you can read how in the manpage
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
thanks again!
Offline
The recommended method to shutdown, reboot and switch to single user mode is to run shutdown command. It does some fancy things like broadcasting shutdown message to all currently logged users, scheduling real shutdown, enforcing fsck on next boot.
Offline
Pages: 1