27.3 "Linux learning is not difficult" Linux Network Command (3): ping command to test connectivity to the target computer
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 shown in the table.
Options |
option meaning |
-C < completion times > |
set the number of responses required to complete |
-S < packet size > |
Specifies the number of bytes of data to be sent. The default value is 56 |
-V |
Show verbose output information |
-R |
Record Routing |
Example: Testing connectivity to Web site www.sina.com.
[[email protected] ~]# Ping www.sina.com
Example: testing connectivity to a computer 192.168.0.200, sending 4 ICMP packets.
[Email protected] ~]# ping-c 4 192.168.0.200
This article extracts from "Linux Learning is not difficult" textbook, which is one of the most practical, theoretical and practical Linux Introductory materials. To read the entire book, visit the Linux ops (www.linuxywz.com) website .
Linux learning is not difficult "Linux Network Command (3): Ping to test connectivity between target computers