cmdxray / commands / ping

What does ping do?

test reachability of a host on the network.

▸ Explain your own ping command →

ping examples, explained

$ ping -c 4 host

  • pingtest reachability of a host on the network
  • -cstop after sending this many packets
  • 4value for -c
  • hostan argument passed to the command

$ ping -i 2 host

  • pingtest reachability of a host on the network
  • -iwait this many seconds between packets
  • 2value for -i
  • hostan argument passed to the command

ping flags & options

-cstop after sending this many packets
-iwait this many seconds between packets
-Wtime to wait for a reply, in seconds

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.