ping
NetworkBeginner In real LinuxCheck whether a host is reachable
Name: ping: named after the sound of sonar
This command needs a real Linux system; you can practise it in real Linux mode.
Description
ping sends ICMP echo requests to a host and waits for replies, showing each round-trip time and, at the end, loss and latency statistics. It is the first step in checking connectivity.
Some servers and firewalls block ICMP, so no reply doesn't always mean the host is down.
Syntax
ping [OPTION]... HOSTCommon options
| -c COUNT | Send N packets (Linux pings forever otherwise; Ctrl+C stops) |
| -i INTERVAL | Seconds between packets |
| -W TIMEOUT | Wait at most TIMEOUT seconds for each reply |
| -w DEADLINE | Stop after DEADLINE seconds, whatever was sent |
| -s SIZE | Bytes of data per packet (56 by default) |
| -q | Quiet: only the summary |
| -n | Do not look up host names |
| -4 / -6 | IPv4 / IPv6 only |