Experts,
How do I see the source code for the Linux shell command pidof ? Based on the answers for related questions I checked in the GNU coreutils. It isn’t there..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are on Debian system like Ubuntu you can try something on these lines:
dpkg -S <utility>, this will tell you which package installed this utility; then you can get the source usingapt-get source <package-name>. To get the source make sure you havedeb-srcentry in/etc/apt/sources.listFor example on Ubuntu system I use:
So the package name is sysvinit-utils
Source package picked. It also inform about svn where the source is maintained.
I am sure there should be equivalent of this on non-Debian systems. Google might help you.
Hope this can help a bit!
Edit: A little info for
yum:1. Search for package:
yum whatprovides <package_name>So for
pidofmaybe:2. Get the source:
yumdownloader --source <source_name>. You may needyum-utilsfor this. More info at this linkAlthough I have not tried it, but I guess you can give a shot!