Home / Docs / Linux / Linux tools / Nmap Discover all live hosts on a subnet¶ sudo nmap -sP [ subnet ]/[ cidr ] sudo nmap -sP 192.168.0.0/24