nmap scan code example
Example 1: nmap list scan
nmap -sL {target netblock(s)} # List Scan nmap which simply enumerates every IP address in the given target netblock(s) and does a reverse-DNS lookup on each.
Example 2: nmap version scan
sudo nmap -sV 127.0.0.1
Example 3: nmap port scan
How to scan all target ports
Sudo nmap pasteheretargetip