Finding stuff on local network with nmap

nmap -p 22 192.168.1.0/24
Find all SSH ports 
nmap -p 22 192.168.1.0/24 --open
Find open SSH ports
sudo nmap --script rtsp-url-brute -p 554,8554 192.168.1.0/24
Find RTSP camera on the local network
nmap -sp 192.168.1.0/24
Ping scan
nmap -p 1-65535 localhost --open
Scan open ports on local machine
nmap --top-ports 20 localhost
Scan most popular ports