What is the use of linux ping command?

藏色散人
Release: 2020-10-14 17:18:27
Original
4039 people have browsed it

The linux ping command is used to detect the host. Its syntax is "ping [-dfnqrRv][-c][-i][-I ][-l][-p<Template style>][-s<Packet size>][-t<survival value>]". <!--存活数值--><!--数据包大小--><!--范本样式--><!--前置载入--><!--网络界面--><!--间隔秒数--><!--完成次数--></p></blockquote> <p><img src="https://img.php.cn/upload/article/202010/14/2020101417154693132.jpg" alt="What is the use of linux ping command?" ></p># Recommended: "<p>linux tutorial<a href="https://www.php.cn/course/list/33.html" target="_blank"> 》</a></p>Linux ping command is used to detect the host. <p></p>Executing the ping command will use the ICMP transport protocol to send a message requesting a response. If there is no problem with the network function of the remote host, it will respond to the message, thus knowing that the host is operating normally. <p></p>Syntax<p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">ping [-dfnqrRv][-c<完成次数>][-i<间隔秒数>][-I<网络界面>][-l<前置载入>][-p<范本样式>][-s<数据包大小>][-t<存活数值>][主机名称或IP地址]

Copy after login

Parameter description:

-d Use the SO_DEBUG function of Socket.

-c Set the number of times to complete the request response.

-f Limit detection.

-i Specify the interval between sending and receiving information.

-I uses the specified network interface to send data packets.

-l Set the data packet to be sent before sending the request information.

-n Only output numerical values.

-p