-
The Linux ping command is used to detect the host.
The ping command will use the ICMP protocol to send a message requesting a response, and if the network function of the remote host is not faulty, it will respond to the message, so that the host is operating properly.
Syntax: ping
dfnqrrv] [-c "number of completions"] [i "interval seconds"] [i "network interface"] [l "preloading"] [p "template style"] [s "packet size"] [t "survival value"] [host name or IP address].
Parameter: d Use the so debug function of the socket.
c. "Number of Completions" sets the number of times to complete the response to the request.
f Limit detection.
i《Interval Seconds》 specifies the interval between sending and receiving messages.
l《Web Interface》 Use the specified network interface to send packets.
l "Preload" is set to send the packets before the required information is sent.
n Only values are output.
p"Template Style" sets the template style to fill the packets.
q does not display the execution process of the command, except for the information at the beginning and end.
r ignores the common routing table and sends packets to the remote host.
r Record the routing process.
s《Packet Size》 Sets the size of the packet.
T "Survival Value" Sets the size of the survival value ttl.
v Shows the execution process of the instruction in detail.
-
To check whether the network is connected, you can write ip or ** after the ping command, such as ping, and some commonly used parameters, such as: ping -c 5 means ping 5 times, ping -s 1024 means sending 1k packets each time, ping -i 5 means that the time interval of each ping is 5 seconds.
There is a full set of articles about the full set of Linux command dark horse programmer community.,Learn to operate,My method is to see ** while doing it.。 Dark Horse has a good point, their courses contain supporting materials, and the connotation has notes + courseware + source code. Or you can take a look at their syllabus for the basic classes related to software testing, which can be taken offline and for free.
-
How to use the ping command to modify various commands on the computer.
-
1. First, connect the Linux operating system to the Internet, and right-click the mouse to select the terminal.
2. ping command + **, enter key.
3. If there is IP feedback, it means that there is something wrong with the network. If there is no feedback, it means that there is a problem with the IP.
4. If you want to stop ping, then ctrl+c, you can stop.
5. If you put it in the background to continue ping, then Ctrl+Z is fine.
6. But ping is different from ping on win, it will not stop automatically, you need to set the number of pings according to the diagram.
-
In order to prevent being detected by ping, some servers are set to prohibit ping through the firewall or prohibit ping in the kernel parameters, so it is not possible to determine whether the host is still on through ping.
The language of LinuxLinux is developed in C and assembly language. C is the "mother tongue" of Linux, which is also the result of the open source environment and its own mechanism. The kernel part of Linux is basically written in C, and some of it is written in the Huizheng decoding language.
The above is a sharing, I hope it can help everyone.
-
On a Linux system, the ping command can be used to test connectivity to a target host. The ping command sends an ICMP Echo Request packet to the target host and receives the ICMP Echo Reply packet in response to determine whether the target host is reachable and whether the network connection is healthy.
The basic syntax of the ping command is as follows:
Ping [options] destinationc count: Specifies the number of echo request packets to send.
i interval: Specifies the interval at which the echo request packet is sent.
S packetsize: specifies the data size of the echo request packet to be sent.
t ttl: Specifies the time-to-live (ttl) of the echo request packet.
w deadline: specifies the timeout period for the ping command.
1. Basic usage.
The basic usage of the grep command is to find a line in a file that contains a specified pattern. For example, to find a line in a file that contains example, you can run the following command: >>>More
1. Open the 3DMAX software, select Create, Spline, Circle. >>>More
The steps to install the virtual machine are as follows:
1. First of all, you need to install the virtual machine software, if your computer is Windows system, VMware is recommended, and Apple Mac system is recommended Parallels Desktop. >>>More
define translates to definition in English;
define x >>>More