tldr/pages/osx/ping.md

29 lines
715 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 a host, specifying the interval in seconds between requests (default is 1 second):
2019-02-11 06:54:27 +00:00
2022-02-14 11:21:43 +00:00
`ping -i {{seconds}} "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping a host without trying to lookup symbolic names for addresses:
2019-02-11 06:54:27 +00:00
2022-02-14 11:21:43 +00:00
`ping -n "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping a host and ring the bell when a packet is received (if your terminal supports it):
2019-02-11 06:54:27 +00:00
2022-02-14 11:21:43 +00:00
`ping -a "{{host}}"`
2019-02-11 06:54:27 +00:00
- Ping a host and prints the time a packet was received (this option is an Apple addition):
2019-02-11 06:54:27 +00:00
2022-02-14 11:21:43 +00:00
`ping --apple-time "{{host}}"`