[root@dywHome2 ~]# who dywang tty1 2008-09-07 06:00
[root@dywOffice bin]# cd /sbin [root@dywOffice sbin]# ll halt shutdown poweroff reboot -rwxr-xr-x 1 root root 10540 Jul 2 2006 halt* lrwxrwxrwx 1 root root 4 Mar 14 2007 poweroff -> halt* lrwxrwxrwx 1 root root 4 Mar 14 2007 reboot -> halt* -rwxr-xr-x 1 root root 18736 Jul 2 2006 shutdown*
[root@mdk-dyw ~]# shutdown
Usage: shutdown [-akrhfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
[root@mdk-dyw ~]# shutdown -h now
[root@mdk-dyw ~]# shutdown -h 00:05
[root@mdk-dyw ~]# shutdown -h +30
[root@mdk-dyw ~]# shutdown -r now
[root@mdk-dyw ~]# shutdown -r +30 'The system will reboot'
[root@mdk-dyw ~]# shutdown -k now 'This system will reboot'
[root@mdk-dyw ~]# halt
[root@mdk-dyw ~]# reboot
練習題
shutdown -h now,代表意義為何?
shutdown -h 00:05,代表意義為何?
shutdown -h +30,代表意義為何?
shutdown -r now,代表意義為何?
shutdown -r +30 'This system will reboot',代表意義為何?
shutdown -k now 'This system will reboot',代表意義為何?