Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With nmap, I want to skip the scan on port 80. I'm sure this is in the man somewhere, but I haven't found it so far. My command is simple:


So this will scan ports in the 24.0.0.x range; I just need to avoid port 80 (for stealth reasons).

share|improve this question
up vote 4 down vote accepted

You can use comma as a separator to separate two different ranges of port. For ex. in your case you can give the following

$ nmap -p 1-79,81-65535

Hence this way we omitted port scanning on port 80.

share|improve this answer
Nmap scans 1000 ports by default. This changes it to scan 65534 ports. To get the same ports as default without 80, try this: nmap -p -79,81- --top-ports 999 – bonsaiviking Apr 16 '12 at 20:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.