Check Ports With netcat
Probe TCP or UDP ports and pipe data between hosts.
01Command
$ nc -zv example.com 44302What it does
netcat is the classic network utility: -z scans without sending data and -v prints the result, while an interactive invocation can transfer files or act as a simple server. The OpenBSD variant is the one packaged by most distributions.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Debian package: netcat-openbsdEvidence: Debian packages the OpenBSD netcat, whose nc offers -z for scanning and -v for verbose output.
- nc(1) manualEvidence: Debian packages the OpenBSD netcat, whose nc offers -z for scanning and -v for verbose output.
Last verified: 2026-09-22 · Category: Network
06Related solutions
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Show every TCP and UDP socket in listening state with the owning process name and PID — the modern replacement for netstat.
Send a HEAD request to any URL and print the status line, server, content type, caching, and redirect headers.