ping [-n] hostname [ timeout ]
ping
looks up hostname and then attempts to contact it via the network. If the effective userid
permits an ICMP (Internet Control Message Protocol) ECHO_REQUEST packet is
sent, otherwise and attempt is made to connect to the echo port using UDP
protocol.
A timeout may be specified in seconds. The default is 20 seconds.
If -n
option is specified then the address of hostname is reported as numbers.