nc do?open, listen on, or script raw TCP/UDP connections (netcat).
▸ Explain your own nc command →$ nc -lvnp 4444
$ nc -zv host 22
| -l | listen for an incoming connection instead of connecting |
| -v | verbose — report connections and errors |
| -n | numeric only — skip DNS/service-name lookups |
| -p | use this source port |
| -u | use UDP instead of TCP |
| -k | keep listening for more connections after one closes |
| -w | give up after this many seconds of inactivity (timeout) |
| -z | zero-I/O mode — just scan for listening ports, send no data |
| -s | use this source address |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.