Become a power “pinger” in the Terminal
It is always fun to read the “man” pages in terminal and learn more about each command that I already use. I recently read the man page for ping and learned some cool stuff worthy of sharing.
Ping in specific time intervals
- To ping at a time interval other than the default 1 second us the option flag of ‘-i [seconds to wait]’
- Example: ping -i5 www.google.com
- This command will send a ping to google every 5 seconds
- Note: It appears that any interval below 1 second requires root privileges
Super Ping! aka “Flood ping”
Personally, I think super ping sounds way cooler than flood ping but the later provides a better description of what it does.
- According to the “man” pages, a flood will send out pings as fast as they come back or 100 pings/sec. Which ever one is happening faster will be the rule that is followed.
- Example: sudo ping -f www.google.com
- This command will print a period to the console for every packet sent and will delete a period for every packet received. The cumulative effect of this is as more packets are dropped you will see more and more periods accumulate on the screen giving you instant feed back on how fast packets are being dropped.
- Note: Use this command very wisely and with caution as it taxes your network.
- With my internet connection, pinging google, I was able to send off 6,000 pings in 10 seconds.
The terminal is a very powerful tool!
You may remix, tweak, and build upon this work even for commercial reasons, as long as you credit me and license your new creations under these identical terms. All new works based on this work will carry the same license, so any derivatives will also allow commercial use. To credit this work please use the web citation and archive service found at http://www.webcitation.org/archive or click on the “Archive & Cite this page!” image above.
Become a power “pinger” in the Terminal by Mike Grace is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
The “man” pages were used for the information found in this post. You can find the ping man page by typing into a unix or linux terminal the command “man ping” or a copy of several operating system man pages can be found at http://manpages.unixforum.co.uk/