ping command--linux command to apply a large dictionary 729 commands interpretation

Source: Internet
Author: User
Tags network function


The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"

tell 729 commands, 1935 examples

Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found

Strive to publish content every day


Ping Command

use the ping command to test connectivity to the target computer. the ping command uses the ICMP Transport protocol to emit information that requires a response, and if the remote host has no problem with the network function, it will respond to the message and be informed that the host is functioning properly.

Command syntax:

ping [ options ] [ target ]

The meanings of the options in the command are as follows is shown.

table ping command options meaning

Options

Meaning

-C < completion times >

Set the number of responses required to complete

-I <

The number of seconds to wait between each packet send. The default value is to wait for the 1 seconds

-N

Specifies that only numbers are output. Do not search for the symbolic name of the host address

-S < packet size >

Specifies the number of bytes of data to be sent. The default value is 56

-T < survival value ;

set the Live value TTL size        

-B

Allow ping broadcast addresses to be performed

-V

Show verbose output information

-Q

Quiet output

-R

Bypass the normal routing table and send directly to the host on the connection interface

-W < timeout >

The time, in seconds, to wait for a response

-W < due date >

Specify a time-out in seconds

-B

do not allow pings to change the source address of the probe

-L

suppresses the loopback of multicast packets. the ping target only applies to a multicast address

-I < interface address >

Sets the address of the source address to the specified interface

-R

Record routing

Example : Test connectivity to website www.sina.com .

[[Email protected]~]# Ping www.sina.com

PINGjupiter.sina.com.cn (202.108.33.60) bytes of data.

64bytes from 202.108.33.60:icmp_seq=1 ttl=248 time=108 ms

64bytes from 202.108.33.60:icmp_seq=2 ttl=248 time=17.7 ms

64bytes from 202.108.33.60:icmp_seq=3 ttl=248 time=47.0 ms

64bytes from 202.108.33.60:icmp_seq=4 ttl=248 time=22.3 ms

64bytes from 202.108.33.60:icmp_seq=5 ttl=248 time=95.3 ms

........................ (omitted)

Use this command in a Linux system to return ICMP packets without interruption , to stop the test press the [Ctrl + C] key

Example : Test connectivity to the computer 192.168.0.200 , each time the ICMP packet is sent with a size of bytes.

[[Email protected]~]# ping-s 128 192.168.0.200

PING192.168.0.200 (192.168.0.200) (156) bytes of data.

136bytes from 192.168.0.200:icmp_seq=1 ttl=64 time=0.446 ms

136bytes from 192.168.0.200:icmp_seq=2 ttl=64 time=0.278 ms

136bytes from 192.168.0.200:icmp_seq=3 ttl=64 time=0.287 ms

136bytes from 192.168.0.200:icmp_seq=4 ttl=64 time=0.279 ms

136bytes from 192.168.0.200:icmp_seq=5 ttl=64 time=0.286 ms

136bytes from 192.168.0.200:icmp_seq=6 ttl=64 time=0.320 ms

136bytes from 192.168.0.200:icmp_seq=7 ttl=64 time=0.281 ms

........................ (omitted)

Example : Tests connectivity to the computer 192.168.0.200 , sending 4 ICMP packets.

[Email protected] ~]# ping-c 4 192.168.0.200

PING 192.168.0.200 (192.168.0.200) bytes of data.

Bytes from 192.168.0.200:icmp_seq=1 ttl=64 time=0.357ms

Bytes from 192.168.0.200:icmp_seq=2 ttl=64 time=0.287ms

Bytes from 192.168.0.200:icmp_seq=3 ttl=64 time=0.290ms

Bytes from 192.168.0.200:icmp_seq=4 ttl=64 time=0.290ms

---192.168.0.200 ping statistics---

4 packets transmitted, 4 received, 0% packet loss, time3038ms

RTT Min/avg/max/mdev = 0.287/0.306/0.357/0.029 ms


This article from "airfish2000" blog, declined reprint!

ping command--linux command to apply a large dictionary 729 commands interpretation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.