Checking Connections with ping

Think of using ping as saying “Are you there?” to a remote computer. For example, suppose you’re trying to connect to a Web page but are getting no response from the computer. Rather than wait and wonder what’s going on, type ping to find out if the computer is up and functional (Code Listing 12.5).

Code Listing 12.5. Using ping, you can find out whether or not you can connect to a specific computer.
[ejr@hobbes ejr]$ ping www.raycomm.com PING www.raycomm.com (204.228.141.12): 56 →data bytes 64 bytes from 204.228.141.12: icmp_seq=0 →ttl=251 time=190.3 ms 64 bytes from 204.228.141.12: icmp_seq=1 →ttl=251 time=197.7 ms 64 bytes from 204.228.141.12: icmp_seq=2 →ttl=251 time=166.5 ms 64 bytes from 204.228.141.12: icmp_seq=3 ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.