$ ping
Send ICMP ECHO_REQUEST to network hosts
DOCUMENTEDNetworkingUbuntu 24.04 LTS baseline
Synopsis
ping [options] destination
What it does
- `ping` sends ICMP Echo Request messages and reports responses when permitted by the network and destination.
- A failed ping does not by itself prove that a host or service is down; ICMP may be filtered.
Examples
Test reachability of a host
ping 1.1.1.1Send four requests
ping -c 4 example.comImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.