Nmap commands

To perform a LAN sweep, enter the following command.

Nmap -sn x.x.x.x/x

Perform a scan on a LAN to search for open ports.

sudo nmap x.x.x.x/x -p 80,443