What does ping do?
ping checks whether a host is reachable by sending ICMP echo packets and measuring how long the replies take.
ping [-c N] host
Most useful options
| Option | What it does |
|---|---|
| -c N | send N packets then stop |
| -i | interval between packets |
ping examples
In security work
Many firewalls block ping, so a host that does not answer may still be up.
Questions about ping
How do I stop ping?
Press Ctrl+C, or use -c to send a fixed number of packets.