Ping without ping command
This is useful in an environment that has no ping command and cannot install it e.g. in Docker or Kubernetes pod. For checking connections to other hosts like MySQL, web server using TCP connection.
Example for MySQL
(echo >/dev/tcp/192.168.0.17/3306) &>/dev/null && echo "open" || echo "closed"