The ping command is primarily used to test the connectivity of the host.
Grammar:
ping [-DFNQRRV] [-c < completed number;] [-I < interval seconds;] [-I < network interface;] [-l < pre-loading;] [-p < data format;] [-s < packet size] ;] [-t < life cycle;] < host name or IP address >
Number of references:
-D uses the So_debug function of the Socket.-F limit detection. The request is sent at full speed without waiting for the response to be received. Only a system administrator can use it.
-n outputs only numeric values, not the matching name of the host address,-Q does not show the command run process, except for the beginning and end of the relevant information. -R bypasses the normal routing table. The packets are routed directly to the remote host on the connected network. -R records the routing process. The IP file header can hold only 9 routing information.
-V specifically displays the command's run process. -C < finish > set the number of responses to complete. A request is made and a response is received to complete one response-i < interval seconds > Specify the interval information to send and receive information.
Unit is seconds, default feel 1 seconds, note can not with the parameter-F at the same time use-i < network interface > transfer packets using the specified network interface-l < pre-load > set the packet before sending out the required information. Only system administrators can use this parameter-p < data format > settings to fill the data format of the packet, you must set the-s < packet size > set the size of the packet in hexadecimal.
The default value is Bytes, plus 8 Bytes ICMP header total 64 bytes-T < life cycle > Setting the size of the Live value TTL (time-to-live), in the range of 1~255
Ping of Linux commands