Networking

ping

Tests basic network reachability with ICMP echo requests.

ping sends packets to a host and reports replies and latency. It tests one kind of connectivity, not every service.

Syntax
ping [options] host

Arguments explained

  • host can be a name or IP address.
  • -c limits packet count.
  • -4 or -6 forces IP version.

Common examples

Send four pings
ping -c 4 1.1.1.1

Tests reachability to a public IP without DNS.

Test DNS plus reachability
ping -c 4 example.com

Requires DNS resolution and ICMP replies.

ping Command
FieldDetails
Commandping
CategoryNetworking
Primary useTests basic network reachability with ICMP echo requests.
Syntaxping [options] host