Beginner Package: iputils-ping

ping

Test basic reachability of a host using ICMP.

Syntax

ping [options] destination

Description

ping sends ICMP ECHO_REQUEST packets and reports whether, and how quickly, they are answered. It is the most basic reachability and latency test on any network.

Examples

ping -c 4 example.com
Send exactly four pings then stop
ping -i 0.2 192.168.1.1
Ping a host every 0.2 seconds
ping6 example.com
Ping over IPv6 (or use ping -6 on newer versions)
Some networks/hosts block ICMP, so no reply does not always mean the host is down.

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context