What is the source of the implementation of ping is Cygwin using?

It apparently isn't GNU ping (because in GNU ping, the number of pings to send is decided with -c X, while in Cygwin ping, it's decided with -n X).

Is it a custom ping? BusyBox ping? Toybox ping? NetBSD ping? OpenBSD ping? FreeBSD ping? Something else?

2 Answers 2


It's Windows ping. Just run:

which ping 

You'll get:


Cygwin ping is available on ping package from inetutils source

$ which ping

$ cygcheck -f `which ping`

x86_64 $ ping --help
Usage: ping [OPTION...] HOST ...
Send ICMP ECHO_REQUEST packets to network hosts.

 Options controlling ICMP request types:
      --address              send ICMP_ADDRESS packets (root only)
      --echo                 send ICMP_ECHO packets (default)
      --mask                 same as --address
      --timestamp            send ICMP_TIMESTAMP packets
  -t, --type=TYPE            send TYPE packets

 Options valid for all request types:

  -c, --count=NUMBER         stop after sending NUMBER packets
  • 7
    You should use command -v ping, not which ping. Also see How to check if a program exists from a Bash script? and the discussion around Posix and environments.
    – jww
    Sep 10, 2019 at 2:53
  • 1
    And which ping implementation is that?
    – OrangeDog
    Sep 10, 2019 at 9:44
  • 1
    GNU gnu.org/software/inetutils
    – matzeri
    Sep 10, 2019 at 22:02
  • 1
    @OrangeDog the question was about cygwin ping not windows ping. So you need the ping package installed if you want it.
    – matzeri
    Sep 11, 2019 at 18:28
  • 1
    @saulius2 you are correct. where ping and which -a ping produce equivalent info from Windows and Cygwin reporting all the ping programs in the PATH
    – matzeri
    Feb 5 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.