Ad space (banner)
🖥️Linux Lessons
Lesson 38 / 61

Checking a Server's Reachability with ping

ping is for when "I want to check whether I can reach that server right now." ping sends a small piece of data to the given target and checks network connectivity based on whether a response comes back.

Use it in the form ping hostname-or-IP-address. Once running, it keeps printing response times at regular intervals; press Ctrl+C to stop it.

Running ping example.com repeatedly sends data to example.com and displays response times (in milliseconds), letting you see whether communication is succeeding.

A common early mistake is concluding "the server is completely down" just because ping isn't getting through. Some servers block ping itself as a security setting.

In real work, when a connection problem to a server comes up, this is used as the very first step to isolate whether it's a network-level issue or an application-level one.

Linux
Try it (type this into the pseudo terminal)
ping example.com

🧑‍💻 You can type this command into the Linux pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)