$ i=1
$ while [ $i -lt 256 ]; do i=$(($i+1)) ; ping -c 3 192.168.0.$i; done
But if you have nmap installed:
$ nmap -sP 192.168.0.*
or
$ nmap -sn 192.168.0.0/24
a blog about computers and other funny things
Month: February 2020
$ i=1
$ while [ $i -lt 256 ]; do i=$(($i+1)) ; ping -c 3 192.168.0.$i; done
But if you have nmap installed:
$ nmap -sP 192.168.0.*
or
$ nmap -sn 192.168.0.0/24