Ping is one of those tools that I’d like to say if i had a dollar for every ping command i have ran .. I could of retired years ago on some beach drinking endless Mai Tai’s
Where its linux, MS Windows or Mac the ping command is very useful for network diagnostics.
The following is some basic uses of ping in bash on Linux.
# Normal use – ping your localhost 4 times
ping -c 4 127.0.0.1
# Normal use – ping your localhost 4 times and don’t try and look up names
ping -n -c 4 127.0.0.1