Ping command The ping command is a command with a command-line interface (CLI) that you can find on every Linux distro and probably any OS in general (FreeBSD, Windows, macOS, ChromeOS, etc.In MS Windows, use ping -n 2 destination In Linux, use ping -c 2 destination Operating Systems can be detected using Ping Command, Ping is a computer network administration software utility, which used to find the Availability of a host on an Internet Protocol (IP) network.The ping command normally uses the ICMP protocol and make checks if the remote system is up or down without a TCP or UDP.Updated MaFew times in administrative jobs we need to make sure some services or ports are always open and listening to monitor the same we can use below script can be used to ping and telnet to different hosts running on different ports.Bash Script To Ping And Telnet multiple hosts by Ramakanta.not sure this can use 'alarm' to do this. Bash if ping You can use the ping cmd with an IP address or the computer/host name.