Cmd Generator

ping

Send ICMP ECHO_REQUEST to network hosts.

ping -c 4 google.com

Examples

# Ping a host
ping google.com

# Ping with count
ping -c 4 google.com

# Ping with interval and size
ping -i 0.5 -s 100 google.com

# Set TTL
ping -t 64 google.com

# Ping until deadline
ping -w 10 google.com

# Flood ping (requires root)
ping -f -c 1000 localhost

# Ping via interface
ping -I eth0 192.168.1.1