Another: To achieve some Linux with the same function of the command, (for example: to achieve in Linux query CPU occupancy rate, Linux command is top), you can refer to the command (top) of the Linux source code,
Transferred from http://hi.baidu.com/yanjinbin/blog/item/3d25ebdd29756fea76c6381f.html
# which reboot <---the which directive will look for eligible files in the directory where the environment variable $path is set
/sbin/reboot <--Find the file as follows
# rpm-qf/sbin/reboot--to find the installation package from the file
SysVinit-2.85.34 <--RPM Package Name
# Rpm-qi SysVinit-2.85.34 <---View installation package information, view the source installation package
Then go to the Internet to find this source installation package, download the source code after the installation package, using Rpm2cpio to extract files:
Redhat Download URL: http://redhat.download.fedoraproject.org/pub/fedora/linux/core/3/SRPMS/
RPM Package Download Address: http://ftp.freshrpms.net/pub/freshrpms/redhat/9/
$ Rpm2cpio sysvinit-2.85.34.src.rpm | Cpio-idv
$ tar xvfz sysvinit-2.85.34.tar.gz
After you can see the source directory: SysVinit-2.85.34