Packet Internet Groper - Linux Network Tool
The ping command sends ICMP ECHO_REQUEST packets to network hosts and displays the response time. It's one of the most fundamental tools for diagnosing network connectivity and measuring latency.
On Linux, ping runs continuously by default until stopped with Ctrl+C. Use the -c option to specify the number of packets to send.
Advertisement
[ Insert Google AdSense Banner Code Here ]
Verify if a remote host is reachable over the network.
Check response times to diagnose slow connections.
Test if hostname resolution is working correctly.
Detect packet loss and connection interruptions.
ping google.com Ping google.com continuously (press Ctrl+C to stop).
ping -c 4 google.com Send exactly 4 ping packets to google.com.
ping 8.8.8.8 Ping Google's DNS server by IP address.
ping -c 10 localhost Ping your local machine 10 times.
ping -i 2 -c 5 google.com Send 5 packets with 2 second intervals between each.
ping --help Display help information for the ping command.
Practice using the ping command in the terminal below. Try typing ping google.com or ping -c 10 8.8.8.8