Where can I find the source code for the reboot command?

Where can I get the source code for the reboot command on Linux?

+4
source share
2 answers
+5
source

On RHEL / CentOS, at least it's in the SysVinit package. You can spot it on

 which reboot 

to find the executable - it is in / sbin / reboot for me - then

 rpm -qf /sbin/reboot 

to find out what package it is in. You can then download SRPM from any CentOS mirror, for example. http://www.mirrorservice.org/sites/mirror.centos.org/5.5/os/SRPMS/

+2
source

Source: https://habr.com/ru/post/1334470/


All Articles