Differences Between Ping and Ping -C 3 Option

Differences Between Ping and Ping -C 3 Option

I would like to know what the differences between using the commands :

ping -c 3 

and

ping 

Any help or information is appreciated. Thanks!

1

2 Answers

ping -c option will specify the number of packets sent and will stop after counting them , here in you example count is 3 .

ping 

will send infinite packets until you stop it by closing or ctrl+c

For more information about ping options

Ping Options

Or use man ping in terminal .

Try it.

ping -c 3 

will send exactly three ping requests to Google, after which the program terminates. It doesn't matter whether there are replys for (some of) the requests or not.

ping 

will endlessly send ping requests to Google, and the ping command will never terminate until you end it manually using, e.g., Ctrl+c.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.