≡ Menu

Ping Command Example

How To Execute Ping Command Only For N number of Packets

Question: When I execute ping command from the command line, it keeps sending the packets until I hit CTRL-C to terminate the ping command output. How can I execute ping command only for N number of packets and terminate the output automatically? Answer: Use ping option -c to specify the number of packets. After sending [...]

{ 1 comment }