The ping command is a diagnostic tool that allows you to check the status of a connection from a local host to at least one remote device on a TCP/IP network. It is used to determine whether a specific IP address or host is accessible from the network.
Its operation is simple; it sends "packets" to the specified server, and if the ping works correctly, the server returns them as confirmation. In this way, we can obtain the IP address to which a given domain or server responds and know whether it is responding or not.
The way to perform a ping varies depending on the operating system we have. In this tutorial we will explain how to do it on the three main operating systems: Windows, Mac OS X, and Linux.
How to ping in Windows
To run a ping from a Windows device, you need to access the command console (CMD) of your operating system. You just need to search for CMD in your start bar to find it:
Once opened, you can run the ping without any problem. You just need to type ping and then the domain/server name you want to check. In this example we used cdmon.com:
How to ping in Mac OS X
In OS X you have two different ways to ping. In Mac OS X there is an application called "Network Utility" that allows you to ping using a graphical interface. You just need to enter the domain/server name you want to ping and click on "Ping". In this example we used the domain google.com:
The other way to ping is like the method shown in Windows; you must open the "Terminal" application on your Mac OS X and just type ping and then the domain/server name you want to check. In this example we used google.com:
How to ping in Linux
In Linux you must open your applications search and look for "Terminal". Once opened, the process is the same as in the other operating systems; you must type ping and then the domain/server name you want to check. In this example we used the domain cdmon.com: