How to execute a ping with Date & Time

With the next command you can view the result of ping with the date and the time of the system:

ping www.google.com | while read pong; do echo "$(date): $pong"; done

Enjoy!!!

Leave a comment