Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6709731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:55:00+00:00 2026-05-26T07:55:00+00:00

Experts, How do I see the source code for the Linux shell command pidof

  • 0

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..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:55:00+00:00Added an answer on May 26, 2026 at 7:55 am

    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 using apt-get source <package-name>. To get the source make sure you have deb-src entry in /etc/apt/sources.list
    For example on Ubuntu system I use:

    $ dpkg -S pidof
    sysvinit-utils: /bin/pidof
    sysvinit-utils: /usr/share/man/man8/pidof.8.gz
    

    So the package name is sysvinit-utils

    $ apt-get source sysvinit-utils
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Picking 'sysvinit' as source package instead of 'sysvinit-utils'
    NOTICE: 'sysvinit' packaging is maintained in the 'Svn' version control system at:
    svn://svn.debian.org/pkg-sysvinit/sysvinit/trunk
    ...
    dpkg-source: info: extracting sysvinit in sysvinit-2.87dsf
    dpkg-source: info: unpacking sysvinit_2.87dsf-4ubuntu17.4.tar.gz
    

    Source package picked. It also inform about svn where the source is maintained.

    $ ls sysvinit*
    sysvinit_2.87dsf-4ubuntu17.4.dsc  sysvinit_2.87dsf-4ubuntu17.4.tar.gz
    
    sysvinit-2.87dsf:
    contrib/  COPYRIGHT  debian/  doc/  man/  obsolete/  README  src/
    

    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 pidof maybe:

    yum whatprovides `which pidof`
    

    2. Get the source: yumdownloader --source <source_name>. You may need yum-utils for this. More info at this link
    Although I have not tried it, but I guess you can give a shot!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dear experts, I am quite new to javascript and I often see coders use
In most of the videos, I see expert JQuery developers writing complete code for
i'm terrible at math. trust me, you math experts will see why after reading
Are there any regex experts who can help me clean up the following source
Hello I see contradicting definitions. Android experts, can you explain this to me please?
I'm working with CodeFirst CTP5. As you can see in my code I have
I was hacking away the source code for plink to make it compatible with
very simple problem, but i want to see how experts look at it. This
experts,i wonder the intel x86 machineCode/assemblyCode conversion is singleSide or bothSide? means: assemblyCode --->
Experts - I need some advice in the following scenario. I have a configuration

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.