ping - Test Connectivity in Linux
From the Linux Essential Commands cheat sheet · Networking · verified Jul 2026
ping - Test Connectivity
Check network connectivity to a host
bash
# Ping host
ping google.com
# Ping with count
ping -c 4 google.com
# Ping with interval
ping -i 2 google.com✅ Tests if host is reachable and measures latency
💡 -c limits number of pings (useful in scripts)
🔍 Press Ctrl+C to stop continuous ping
networkconnectivityping