how to use nmap to scan a specific port code example Example: nmap port scan How to scan all target ports Sudo nmap pasteheretargetip