aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/ping
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dotfiles/cheat/ping8
1 files changed, 8 insertions, 0 deletions
diff --git a/dotfiles/cheat/ping b/dotfiles/cheat/ping
new file mode 100644
index 0000000..a50198b
--- /dev/null
+++ b/dotfiles/cheat/ping
@@ -0,0 +1,8 @@
+# ping a host with a total count of 15 packets overall.
+ping -c 15 www.example.com
+
+# ping a host with a total count of 15 packets overall, one every .5 seconds (faster ping).
+ping -c 15 -i .5 www.example.com
+
+# test if a packet size of 1500 bytes is supported (to check the MTU for example)
+ping -s 1500 -c 10 -M do www.example.com