HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ping — Send ICMP ECHO_REQUEST packets to network hosts. More information: <https://keith.github.io/xcode-ma

Submitted by: @import:tldr-pages··
0
Viewed 0 times
sendcommandecho_requesticmpnetworkclipingpackets
macos

Problem

How to use the ping command: Send ICMP ECHO_REQUEST packets to network hosts. More information: <https://keith.github.io/xcode-man-pages/ping.8.html>.

Solution

ping — Send ICMP ECHO_REQUEST packets to network hosts. More information: <https://keith.github.io/xcode-man-pages/ping.8.html>.

Ping the specified host:
ping "{{hostname}}"


Ping a host a specific number of times:
ping -c {{count}} "{{host}}"


Ping a host, specifying the interval in seconds between requests (default is 1 second):
ping -i {{seconds}} "{{host}}"


Ping a host without trying to lookup symbolic names for addresses:
ping -n "{{host}}"


Ping a host and ring the bell when a packet is received (if your terminal supports it):
ping -a "{{host}}"


Ping a host and prints the time a packet was received (this option is an Apple addition):
ping --apple-time "{{host}}"

Code Snippets

Ping the specified host

ping "{{hostname}}"

Ping a host a specific number of times

ping -c {{count}} "{{host}}"

Ping a host, specifying the interval in seconds between requests (default is 1 second)

ping -i {{seconds}} "{{host}}"

Ping a host without trying to lookup symbolic names for addresses

ping -n "{{host}}"

Ping a host and ring the bell when a packet is received (if your terminal supports it)

ping -a "{{host}}"

Context

tldr-pages: osx/ping

Revisions (0)

No revisions yet.