Back to search

ping

command network

Send ICMP echo requests to test network connectivity

Required Packages

sudo apt install -y iputils-ping

Options

IP address or hostname

Stop after sending this many packets

Wait between each packet (default: 1)

Timeout for entire ping command

Time to wait for each response (seconds)

Bytes (default: 56, max: 65507)

Set IP Time to Live

Interface name or source IP address

Only display summary at end

Numeric output only — do not resolve hostnames

Generated Command

ping -c 4