Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I make the ping command in Mac OS X show "request timeout" in its output if no ICMP replies are received, similar to what the Windows ping command does?

share|improve this question

2 Answers 2

up vote -2 down vote accepted

This is probably what you are looking for:

ping -v host.com
share|improve this answer
This doesn't add a time out. –  Richard Hoskins Sep 3 '09 at 15:40
Andrew S answered my question. The following is my trial. Thanks -- $ ping -v PING ( 56 data bytes ping: sendto: No route to host ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down –  user9639 Sep 3 '09 at 16:20

You can set a time out with the -t option. e.g.

 ping -t 5 microsoft.com

This will exit after five seconds wether the target is alive or not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.