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

Continue with Linux Essential Commands

Save the full cheat sheet or work through every related task.

More Linux tasks

Back to the full Linux Essential Commands cheat sheet