UNIX ping Command Examples

https://w‮ttual.ww‬uri.com
UNIX ping Command Examples

The ping command is a utility that allows you to send Internet Control Message Protocol (ICMP) echo request packets to a network host to test its connectivity.

To use the ping command, you can type ping followed by the hostname or IP address of the network host that you want to test.

For example, to ping the host www.example.com, you can use the following command:

ping www.example.com

This will send ICMP echo request packets to the host www.example.com, and the ping command will display the results of the ping test.

The ping command has several options that allow you to customize the behavior of the command. For example, you can use the -c option to specify the number of echo request packets to send, or the -i option to specify the interval between packets.

For more information about the ping command and its options, you can consult the documentation for your specific Unix or Linux system.

Here are some additional examples of using the ping command:

To ping a host using an IP address:

ping 192.168.1.1

To ping a host and send 10 echo request packets:

ping -c 10 www.example.com

To ping a host and set the interval between packets to 1 second:

ping -i 1 www.example.com

To ping a host and display the results in a continuous loop:

ping -c www.example.com
Created Time:2017-10-30 14:27:23  Author:lautturi