[FZH] 敲的是关机命令,结果机子重启了

Zind wzmindlog at gmail.com
Sun Dec 18 12:28:52 UTC 2011


2011/12/18 Hexchain Tong <richard0053在gmail.com>

> chmod +s 是这个原因么?…


不是。我贴几条命令的执行结果(有删节),就一目了然了
Ubuntu 11.10
% type -a poweroff
poweroff is /sbin/poweroff
% ls -l /sbin/poweroff
lrwxrwxrwx 1 root root 6 2011-10-27 13:14 /sbin/poweroff -> reboot

Fedora 15
% type -a poweroff
poweroff is /usr/bin/poweroff
poweroff is /sbin/poweroff
% ls -l /usr/bin/poweroff
lrwxrwxrwx. 1 root root 13 May 14  2011 /usr/bin/poweroff -> consolehelper
% ls -l /sbin/poweroff
lrwxrwxrwx. 1 root root 16 Oct 15 13:58 /sbin/poweroff -> ../bin/systemctl


More information about the Chinese mailing list