We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
至少在 Ubuntu 中,
/sbin/halt
是/sbin/reboot
的符号链接,它是 暴发户。 在这里获取它< /a>.In Ubuntu at least,
/sbin/halt
is a symlink to/sbin/reboot
, which is a part of upstart. Get it here.这是 busybox 的暂停版本。 linux/bsd/whatever 可能在很多方面都很相似,尽管更复杂一些:)
http://www.google.com /codesearch/p?hl=en#EKZaOgYQHwo/unstable/sources/busybox-1.2.1.tar.gz%7C5l79Bld9wLE/busybox-1.2.1/init/halt.c&q=halt.c%20lang:c
此 URL 似乎有 sysvinit 源的副本:
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz
停止源应该位于该存档中。
Here's a version of halt from busybox. The linux/bsd/whatever one is probably similar in many ways, although a little more elaborate :)
http://www.google.com/codesearch/p?hl=en#EKZaOgYQHwo/unstable/sources/busybox-1.2.1.tar.gz%7C5l79Bld9wLE/busybox-1.2.1/init/halt.c&q=halt.c%20lang:c
This URL appears to have a copy of the sysvinit source:
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz
The halt source should be in that archive.
NetBSD 的代码在这里: http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/reboot/reboot.c?rev=1.35.4.1&content-type=text/x -cvsweb-标记
The code for NetBSD is here : http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/reboot/reboot.c?rev=1.35.4.1&content-type=text/x-cvsweb-markup
也许可以尝试 /sbin/,一些工具(例如 shutdown)位于那里。如果您想重新启动计算机,请输入:
Maybe try /sbin/, some tools like shutdown are located there. If you are looking to restart your computer give: