0% found this document useful (0 votes)
54 views

The Ping Utility: Syntax

This document discusses several network communication utilities in Unix, including the ping utility. The ping command sends an echo request to a host on the network to check if it is responding. It is useful for tracking hardware and software problems, determining network status, and testing/managing networks. The syntax is simple, using the ping command followed by a hostname or IP address. An example shows pinging google.com and receiving response times and packet loss statistics.

Uploaded by

rahul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

The Ping Utility: Syntax

This document discusses several network communication utilities in Unix, including the ping utility. The ping command sends an echo request to a host on the network to check if it is responding. It is useful for tracking hardware and software problems, determining network status, and testing/managing networks. The syntax is simple, using the ping command followed by a hostname or IP address. An example shows pinging google.com and receiving response times and packet loss statistics.

Uploaded by

rahul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

n this chapter, we will discuss in detail about network communication utilities in

Unix. When you work in a distributed environment, you need to communicate with
remote users and you also need to access remote Unix machines.
There are several Unix utilities that help users compute in a networked, distributed
environment. This chapter lists a few of them.

The ping Utility


The ping command sends an echo request to a host available on the network.
Using this command, you can check if your remote host is responding well or not.
The ping command is useful for the following −

 Tracking and isolating hardware and software problems.


 Determining the status of the network and various foreign hosts.
 Testing, measuring, and managing networks.

Syntax

Following is the simple syntax to use the ftp command −


$ping hostname or ip-address
The above command starts printing a response after every second. To come out of
the command, you can terminate it by pressing CNTRL + C keys.

Example

Following is an example to check the availability of a host available on the network



$ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from 74.125.67.100: icmp_seq = 1 ttl = 54 time = 39.4 ms
64 bytes from 74.125.67.100: icmp_seq = 2 ttl = 54 time = 39.9 ms
64 bytes from 74.125.67.100: icmp_seq = 3 ttl = 54 time = 39.3 ms
64 bytes from 74.125.67.100: icmp_seq = 4 ttl = 54 time = 39.1 ms
64 bytes from 74.125.67.100: icmp_seq = 5 ttl = 54 time = 38.8 ms
--- google.com ping statistics ---
22 packets transmitted, 22 received, 0% packet loss, time 21017ms
rtt min/avg/max/mdev = 38.867/39.334/39.900/0.396 ms
$
If a host does not exist, you will receive the following output −
$ping giiiiiigle.com
ping: unknown host giiiiigle.com
$

You might also like