LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1122|回复: 2

[求教]poweroff和init 0的区别

[复制链接]
发表于 2007-11-15 16:24:51 | 显示全部楼层 |阅读模式
RT

我从来都是用的init 0

它们之间有什么其别呢?
谢谢!
发表于 2007-11-17 11:59:58 | 显示全部楼层
$ whereis poweroff
poweroff: /sbin/poweroff /usr/share/man/man8/poweroff.8.gz

$ file /sbin/poweroff
/sbin/poweroff: symbolic link to `reboot'

$ whereis reboot
reboot: /sbin/reboot /usr/share/man/man8/reboot.8.gz

$ file /sbin/reboot
/sbin/reboot: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
回复 支持 反对

使用道具 举报

发表于 2007-11-18 12:37:22 | 显示全部楼层
poweroff应该有sync 而init 0我感觉没有sync
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表