Ping a destination with 4 ICMP ping requests

hping3

  • Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
    Best run with elevated privileges.
    More information: <https://github.com/antirez/hping>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

hping3 --icmp --count {{4}} {{ip_or_hostname}}

click the source code to copy install hping3 on any operating system with command-not-found.com