开发者

Where can I find the source code for "reboot" command? [closed]

开发者 https://www.devze.com 2023-02-02 12:54 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

From 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/

0

精彩评论

暂无评论...
验证码 换一张
取 消