Where can I find the source code for “reboot” command? [closed]
Question
From where to get the source code for reboot
command in Linux ?
Solution
See shutdown.c in util-linux.
OTHER TIPS
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/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow