We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_StackOverflow社区Closed 7 years ago.
Improve this questionFrom where to get the source code for reboot
command in Linux ?
See shutdown.c in util-linux.
On RHEL / CentOS at least it's in the SysVinit package. You can determine this by
which reboot
to find the executable - it's in /sbin/reboot for me - then
rpm -qf /sbin/reboot
to find out which package it is in. You should then be able to download a SRPM from any CentOS mirror, e.g. http://www.mirrorservice.org/sites/mirror.centos.org/5.5/os/SRPMS/
精彩评论