Top 10 ping command in linux and termux | List of Commands in linux

11:11
Today we will see

Top 10 ping command in linux and termux.

Ping command is available for windows and Linux. We use the Ping command to test the network-based device
and its connectivity inside and outside the network. Ping command shares the information about the concerned host whether it is active or inactive inside or outside the network. If the Host is found active you will get the response (receive packets) back otherwise, there will be no response (100% packet loss). Let us see the demonstration.
The base command is ping "Ip/hoste"
Normal Ping to an IP or Domain
$  ping www.google.com 
OR
$  ping 216.58.212.78 
Ping IPv6 command
$ ping -6 2001:4860:4860::8888
Ping 3 times only
$  ping -c 5 www.google.com 
Stop for few seconds and ping again -i will specify the time in seconds
$  ping -i 3 -c 5 www.google.com 
Flood ping using -f sends ping requests as fast as possible
$  sudo ping -f www.google.com 
OR
$  sudo ping -f -i 3 www.google.com	#specify interval between requests  
Increase pin Packet size
$  ping -s 65507 192.168.0.4 
Ping all hosts on a given subnet
$  ping -b -c 4 192.168.0.255 
Send messages over a network. You can read the outputs using Wire Shark tool.
$  sudo nping -c 1 --data-string "Hello World" --tcp -p 80,443 192.168.0.3 
or a long string
#sudo nping -c 1 --data-string "Hello World. This is a custom ICMP packet." --tcp -p 80,443 192.168.0.2
Get details open ports and DNS details
$  nmap --script broadcast-ping google.com 
Ping is used to testing the network and its connectivity it shares the information concern to the host whether it is active or not. If the Host is found active you will get the response (receive packets) back else you there will be no response 100% packet loss. Normal Ping to an IP or Domain
$  ping www.google.com 
OR
$  ping 216.58.212.78 
Ping IPv6 command ping -6 2001:4860:4860::8888 Ping 3 times only
$  ping -c 5 www.google.com 
Stop for few seconds and ping again -i will specify the time in seconds
$  ping -i 3 -c 5 www.google.com 
Flood ping using -f sends ping requests as fast as possible Top 10 ping command in linux and termux
$  sudo ping -f www.google.com 
OR
$  sudo ping -f -i 3 www.google.com	#specify interval between requests  
Increase pin Packet size
$  ping -s 65507 192.168.0.4 
Ping all hosts on a given subnet
$  ping -b -c 4 192.168.0.255 
Get details open ports and DNS details
$  nmap --script broadcast-ping google.com