Δημοσιεύτηκε: 19 Ιούλ 2009, 16:55
από medigeek
Η διαφορά είναι ότι το shutdown χρειάζεται το "-P now". Καμιά απολύτως βασικά, το shutdown προσφέρει reboot, halt, poweroff κτλ.
Και το poweroff χωρίς το -f είναι απλά το shutdown απλουστευμένο.

έγραψε:$ shutdown --help
Usage: shutdown [OPTION]... TIME [MESSAGE]
Bring the system down.

Options:
-r reboot after shutdown
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
-c cancel a running shutdown
-k only send warnings, don't shutdown
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit


Reboot:
Κώδικας: Επιλογή όλων
sudo shutdown -r now


Poweroff (Σβήσιμο υπολογιστή):
Κώδικας: Επιλογή όλων
sudo shutdown -P now


Το -h σε κάποια συστήματα «σβήνει» τον υπολογιστή, αλλά όχι εξ'ολοκλήρου, κάποτε χρειάζεται να πατήσουν το κουμπί της εκκίνησης για να σβήσει τελείως



έγραψε:$ poweroff --help
Usage: poweroff [OPTION]...
Power off the system.

Options:
-n don't sync before reboot or halt
-f force reboot or halt, don't call shutdown(8)
-p switch off the power when called as halt
-h put hard disks into standby
-i bring down network interfaces
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit

This command is intended to instruct the kernel to reboot or halt the system;
when run without the -f option it will actually execute /sbin/shutdown.

Before the system is rebooted or halted, the disks are syncd; this can be
avoided by giving -n.

Network interfaces can be brought down by giving the -i option, and IDE disks
can be put into standby by giving the -h option. On Linux, these are almost
never necessary as the kernel shuts down all devices anyway.

Report bugs to <upstart-devel@lists.ubuntu.com>



Κώδικας: Επιλογή όλων
sudo poweroff



έγραψε:
$ whereis shutdown
shutdown: /sbin/shutdown /usr/share/man/man8/shutdown.8.gz

$ dpkg -S sbin/shutdown
upstart-compat-sysv: /sbin/shutdown

$ dpkg -L upstart-compat-sysv | grep sbin
/sbin
/sbin/reboot
/sbin/runlevel
/sbin/shutdown
/sbin/telinit
/sbin/halt
/sbin/poweroff


Κώδικας: Επιλογή όλων
sudo reboot