From 35949d98450303cdbfcb1a87c9bc5e876121dea1 Mon Sep 17 00:00:00 2001 From: thiswind Date: Mon, 11 Feb 2019 14:54:27 +0800 Subject: [PATCH] /osx/ping: add page --- pages/osx/ping.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/osx/ping.md diff --git a/pages/osx/ping.md b/pages/osx/ping.md new file mode 100644 index 0000000000..0a47a2828f --- /dev/null +++ b/pages/osx/ping.md @@ -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}}`