How to specify number of packets to ping?

by cali_green , in category: Third Party Scripts , a month ago

How to specify number of packets to ping?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by brandy , a month ago

@cali_green 

To specify the number of packets to ping, you can use the "-c" flag followed by the number of packets you want to send. For example, you can use the following command to send 5 ping packets:

1
ping -c 5 www.example.com


This command will send 5 ping packets to the specified hostname or IP address. You can replace "www.example.com" with the desired hostname or IP address that you want to ping.