Difference between revisions of "Ping (command)"
Jump to navigation
Jump to search
↑ https://linux.die.net/man/8/ping
(Created page with "ping command is available in almost all operating systems. The command-line options of the ping utility and its output vary between the numerou...") |
|||
Line 1: | Line 1: | ||
− | [[ | + | [[wikipedia:Ping_(networking_utility)|ping]] command is available in almost all operating systems. The command-line options of the ping utility and its output vary between the numerous implementations. Options may include among others: |
* Count of tests: (<code>-c</code>)<ref>https://linux.die.net/man/8/ping</ref> (Linux and macOS), (<code>-n</code> Windows) | * Count of tests: (<code>-c</code>)<ref>https://linux.die.net/man/8/ping</ref> (Linux and macOS), (<code>-n</code> Windows) | ||
* Size of the payload | * Size of the payload |
Revision as of 17:05, 8 December 2019
ping command is available in almost all operating systems. The command-line options of the ping utility and its output vary between the numerous implementations. Options may include among others:
- Count of tests: (
-c
)[1] (Linux and macOS), (-n
Windows) - Size of the payload
- Limits for the number of network hops (TTL) that probes traverse
Timing options:
- Timeout for exiting:
-t
(macOS), Linux not implemented. - Interval between the requests
- Time to wait for a response (
-W
) miliseconds for macOS and seconds for Linux
Output format:
- Include timestamp on each line: Linux (
-D
)
Contents
Linux
$ ping -c 5 www.example.com PING www.example.com (93.184.216.34): 56 data bytes 64 bytes from 93.184.216.34: icmp_seq=0 ttl=56 time=11.632 ms 64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=11.726 ms 64 bytes from 93.184.216.34: icmp_seq=2 ttl=56 time=10.683 ms 64 bytes from 93.184.216.34: icmp_seq=3 ttl=56 time=9.674 ms 64 bytes from 93.184.216.34: icmp_seq=4 ttl=56 time=11.127 ms --- www.example.com ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 9.674/10.968/11.726/0.748 ms
Activities
Advanced
- Review source code of different ping implementation:
See also
- Computer Networks/Ping
- nping, arping, fping, hping
Test-Connection
Powershell cmdlet- mtr, traceroute, tracepath
Advertising: