If you wish to test your connection to a server from your Linux system you can use the Linux ping command. In this article, we’ll show the basic usage of the Linux ping command and it’s most used part ping -t. This is a great article for both beginners and experts who wish to master the Linux ping command.
How ping works
ping stands for Packet Internet Groper. It uses the ICMP (Internet Control Message Protocol) to send an echo request message. If the listening server can answer it sends an echo message back, displaying information to the user.
Basic usage of Linux ping command
ping exampleDomain.com ping 220.127.116.11
The number of bytes received // 64 bytes from... The IP address of the domain // 18.104.22.168 Sequence Number // 1, 2, 3... The response time // 3.04, 3.04, 3.02
You can set the number of times ping is run. By default, it runs until stopped
ping -c 3 exampleDomain.com
Setting ping ttl
ping -t 60 google.com