tldr/pages/osx/ping.md

29 lines
717 B
Markdown
Raw Normal View History

2019-02-11 06:54:27 +00:00
# ping
> Send ICMP ECHO_REQUEST packets to network hosts.
> More information: <https://keith.github.io/xcode-man-pages/ping.8.html>.
2019-02-11 06:54:27 +00:00
- Ping the specified host:
2022-02-14 11:21:43 +00:00
`ping "{{hostname}}"`
2019-02-11 06:54:27 +00:00
- Ping a host a specific number of times:
2022-02-14 11:21:43 +00:00
`ping -c {{count}} "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping `host`, specifying the interval in `seconds` between requests (default is 1 second):
2022-02-14 11:21:43 +00:00
`ping -i {{seconds}} "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping `host` without trying to lookup symbolic names for addresses:
2022-02-14 11:21:43 +00:00
`ping -n "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping `host` and ring the bell when a packet is received (if your terminal supports it):
2022-02-14 11:21:43 +00:00
`ping -a "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping `host` and prints the time a packet was received (this option is an Apple addition):
2022-02-14 11:21:43 +00:00
`ping --apple-time "{{host}}"`