The ping command is primarily used to detect the connectivity of the host.
Grammar:
ping [-DFNQRRV] [-c < completion times;] [-I < interval seconds;] [-I < network interface;] [-l < pre-loading;] [-p < data format;] [-s < data packet size] ;] [-t < life cycle;] < host name or IP address >
Parameters:
-D uses the So_debug function of the Socket. -F limit detection, which does not wait for the response to send the request information at full speed. Only system administrators can use it. -n outputs only numeric values, not the matching name of the host address-Q does not show the command execution process, except for the beginning and end of the relevant information. -R bypasses the normal routing table and transmits packets to the remote host directly on the connected network. -R records the routing process. The IP file header can hold only 9 routing information. -V Displays the execution process of the command in detail. -C < finish > set the number of times to complete the response. 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 is 1 seconds, note cannot be used with parameter-F at the same time with-i < network interface > send packets with the specified network interface-l < preload > set the packets that are emitted before the request information is sent. Only the system administrator can use this parameter-p < data format > set the data format for filling up 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