Using the ping command in Linux

Category: Advanced (Command Line)  •  Est. reading time: 2 minutes

ping is the simplest way to ask, “is this server reachable, and how fast is the connection?” It sends small test packets to an address and reports how quickly they come back. It is often the first thing you run when something feels slow or unreachable.

The Basics

ping example.com starts sending packets and keeps going until you stop it with Ctrl+C.

ping -c 4 example.com sends just four and then stops on its own.

Reading the Results

Each reply shows a time in milliseconds, which is the round trip. Lower is better. At the end you get a summary, and the number to watch is packet loss. Zero percent is healthy. Losing packets points to a network problem between you and the server.

One caveat: some servers are set to ignore ping on purpose for security. A server that does not answer ping is not necessarily down, it may just be told not to reply.

Chasing a slowdown and not sure where it is? We can dig into it. Reach us at support@allydrez.com or 1-321-209-2004.