nmap -sp 192.168.5.0/24
The most famous type of scan is the Nmap ping scan (so-called because its often used to perform Nmap ping sweeps), and its the easiest way to detect hosts on any network.
The drawback of this ICMP-only type of scan is that remote hosts often block IP-based ping packets, so if youre unable to get solid results, we recommend switching to ARP-based requests for your scan.