level 1
freechenmu
楼主
suse@linux-337q:~> ls -l /sbin/shutdown
lrwxrwxrwx 1 root root 18 4月 3 12:42 /sbin/shutdown -> /usr/bin/systemctl
suse@linux-337q:~> /sbin/shutdown --help | grep "\-h"
--help Show this help
-H --halt Halt the machine
-h Equivalent to --poweroff, overridden by --halt
suse@linux-337q:~> systemctl --help | grep "\-h"
-h --help Show this help
-H --host=[USER@]HOST
suse@linux-337q:~>
看见了吧shutdown实际只是systemctl的链接。那么为什么shutdown -h和systemctl -h不一样呢?
2015年05月22日 09点05分
1
lrwxrwxrwx 1 root root 18 4月 3 12:42 /sbin/shutdown -> /usr/bin/systemctl
suse@linux-337q:~> /sbin/shutdown --help | grep "\-h"
--help Show this help
-H --halt Halt the machine
-h Equivalent to --poweroff, overridden by --halt
suse@linux-337q:~> systemctl --help | grep "\-h"
-h --help Show this help
-H --host=[USER@]HOST
suse@linux-337q:~>
看见了吧shutdown实际只是systemctl的链接。那么为什么shutdown -h和systemctl -h不一样呢?