To scan a specific port using Nmap, you can use the following command in your terminal:
nmap -p <port_number> <target_ip>
Replace <port_number> with the specific port you want to scan and <target_ip> with the IP address of the target. For example, to scan port 8080 on localhost, you would use:
nmap -p 8080 localhost
This command will check if port 8080 is open on the localhost.
