Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm a new user of Linux, now I have a problem as follows: (1) In which way can I get the source code of command "ping" from my OS(Ubuntu9)? ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    2

    How do I get the source code of command "ping" on my computer?

    Hi,

    I'm a new user of Linux, now I have a problem as follows:
    (1) In which way can I get the source code of command "ping" from my OS(Ubuntu9)?
    (2) Please answer it in detail, for that I just have little experience in using Linux.
    (3) Sorry about my poor English spoken.

    Thanks a lot.

    douwenke

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,423
    Step1. Open your browser. [ Chromium, Google Chrome, Firefox, Konqurer etc ]
    Step2. Point it to http://git.busybox.net/busybox/plain/networking/ping.c
    Step3. Read the SourceCode.

    Hope that helped.

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    2
    That's rellay what I want.
    Thanks very much.

    Douwenke

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    Remember, if you use the busybox source, you need to provide attribution of their copyrights in your source code, and make any changes you made available to others if they want them, assuming you are using this for something other than a personal "experiment". Open Source does not mean No License...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined! tyho's Avatar
    Join Date
    Oct 2010
    Location
    Mwanza, Tanzania
    Posts
    76
    You can also fetch source files with
    Code:
    apt-get source <package>
    For ping, it would be
    Code:
    apt-get source inetutils
    or
    Code:
    apt-get source iputils
    (ping is not a package by itself but provided by those packages)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...