nmap

Network scanner — discover hosts and probe open ports on a network.

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

nmap probes hosts and ports to map network topology. Always obtain explicit written permission before scanning any network you don't own or operate.

Common flags
FlagMeaning
-sVDetect service versions on open ports
-OEnable OS detection
-pPorts to scan (-p 22,80,443 or -p 1-1024)
-snPing scan only — discover live hosts
--openShow only open ports
Examples
nmap -sn 10.0.0.0/24Discover live hosts in a /24 subnet · explain & risk-check →
nmap -sV -p 22,80,443 10.0.1.5Check specific ports and detect service versions · explain & risk-check →
Pro tip

Use `-T4` for faster scanning on local networks. Use `-T2` on slow WAN to avoid triggering rate limits.

Related
ss dig curl
Open the full explainer →More in Networking

Reference text is hand-written and may be incomplete — check man nmap for your version. Test destructive commands on a non-production system first.