Scan a single IP
nmap 192.168.1.1
Scan specific IPs
nmap 192.168.1.1 192.168.2.1
Scan a range
nmap 192.168.1.1-254
Scan a domain
nmap scanme.nmap.org
Scan using CIDR notation
nmap 192.168.1.0/24
Scan targets from a file
-iL nmap -iL targets.txt
Scan 100 random hosts
-iR nmap -iR 100
Exclude listed hosts
–exclude
nmap –exclude 192.168.1.1