Rtt min/avg/max/mdev = 315.208/369.190/423.172/53.982 ms Send ping only for a limited timeĪpart from setting the number of packets to send, you can also set for how long the packets will be sent.įor example, if you want to send ping packets for only 5 seconds, you can use it like this: ping -w 5 With this, you can specify the number of packets the ping command should send before stopping automatically. If you don’t want the ping command to run forever without manually stopping it, you can use the -c option. Now that you know how to ping in Linux, let’s see some of the other ping command options. You can see stats like the number of ICMP packets transmitted, received packets, lost packets etc. When you stop the ping command, it presents you with a summary of the transmission. You can use the Ctrl+C terminal shortcut to stop the ping command in Linux, as I did in the above example. You have to manually stop the ping command else it will keep on running. It will send ICMP packets of size 56 bytes to. Once you have it available on your system, you can use ping command with either the IP address or the hostname/URL. To install Ping on Ubuntu or other such systems, you'll have to install the iputils-ping package. But it may not be available in containers. Most Linux distributions come with this command. Did you know? Ping command is correctly written as PING and it stands for Packet Internet Groper.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |