What does `ping` tell you and what does it not?
BeginnerConceptCommand-Line Tools & Diagnostics
Answer
It sends ICMP echo and reports round-trip time and loss, proving basic L3 reachability. It does not prove a service works, and many networks and cloud security groups block ICMP, so no reply is not proof of failure.
ping -c 4 -M do -s 1472 10.0.1.5 # MTU probe with Don't Fragment set
More on Command-Line Tools & Diagnostics
How do you check if a remote port is open?BeginnerHow do you list listening ports and the processes that own them?BeginnerHow does traceroute work and how do you read the output?BeginnerWhat is mtr and why is it better than traceroute?IntermediateHow do you query DNS with dig and read the answer?BeginnerHow do you use curl to debug an HTTP problem?Beginner