🌐ping
Also known as Ping Command, Ping Test, ICMP Echo
A command that checks if a machine answers. It shows how long the answer takes.
Think of it like
It is like yelling into a cave. You wait for the echo and count.
Example
Emma's site feels slow. She pings the server and sees 180 ms each time, when it is most often 20 ms.
Why it matters
It is the first test when something seems down. It tells you if the path to a machine works at all.
Definition
Example code
console
$ ping -c 3 203.0.113.10
64 bytes from 203.0.113.10: icmp_seq=1 ttl=54 time=21.4 ms
64 bytes from 203.0.113.10: icmp_seq=2 ttl=54 time=20.9 ms
64 bytes from 203.0.113.10: icmp_seq=3 ttl=54 time=22.1 ms
3 packets transmitted, 3 received, 0% packet loss, time 2003msCommon mistake
Key takeaways
- 1Echo and reply. One small packet out, one back.
- 2Round-trip time. Shown in milliseconds.
- 3Silence is unclear. Down, or just blocking ping.