1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 15:05:59 +02:00

/osx/ping: add page

This commit is contained in:
thiswind 2019-02-11 14:54:27 +08:00 committed by Starbeamrainbowlabs
parent 6c0eb42496
commit 35949d9845
No known key found for this signature in database
GPG key ID: 1BE5172E637709C2

27
pages/osx/ping.md Normal file
View file

@ -0,0 +1,27 @@
# ping
> Send ICMP ECHO_REQUEST packets to network hosts.
- Ping the specified host:
`ping {{host}}`
- Ping a host a specific number of times:
`ping -c {{count}} {{host}}`
- Ping `host`, specifying the interval in `seconds` between requests (default is 1 second):
`ping -i {{seconds}} {{host}}`
- Ping `host` without trying to lookup symbolic names for addresses:
`ping -n {{host}}`
- Ping `host` and ring the bell when a packet is received (if your terminal supports it):
`ping -a {{host}}`
- Ping `host` and prints the time a packet was received (this option is an Apple addition):
`ping --apple-time {{host}}`