Back to search

nmap

command network

Network exploration and port scanning tool

Required Packages

sudo apt install -y nmap

Options

Host, IP, network (e.g. 192.168.1.0/24), or range

Ports to scan (e.g. 22, 80,443, 1-1024, -)

Scan N most common ports

Enable OS detection

Treat all hosts as online (skip ping)

Scan fewer ports than default (top 100)

Never do DNS resolution (faster)

Save normal output to a file

Save output in XML format

Generated Command

sudo nmap