tcpdump captures and decodes live network traffic from the command line. It relies on libpcap for portable packet capture across Unix-like systems and Windows.
Overview
tcpdump is a command-line tool for network monitoring and packet capture. It listens on interfaces, applies Berkeley Packet Filter expressions, and prints or saves dissected protocol data for troubleshooting, auditing, and security review.
The companion libpcap library offers a portable C interface for user-level capture; tcpdump builds on libpcap so the same tool can be packaged on many operating systems. Native OS packages are common, and source builds are documented when newer releases are needed.
Supported platforms listed in project materials include BSD variants, GNU/Linux, macOS, Windows with WinPcap or Npcap, Solaris, illumos, and others. Output can be written for offline analysis; related utilities such as tcpslice can trim binary trace files.
Documentation includes manual pages for tcpdump and pcap-filter, plus community tutorials. Development continues as open source with security reporting channels and mailing lists for maintainers and contributors.
Key features
- Live packet capture from network interfaces
- BPF filter expressions for selective traffic
- Protocol decoding and human-readable output
- Binary trace capture for offline analysis
- Portable capture via libpcap
- Wide Unix and Windows platform support
- Security issue reporting process
- Man pages and filter documentation
Use cases
- Network troubleshooting and connectivity checks
- Security auditing of on-wire traffic
- Capturing traces for later analysis
- Learning and verifying protocol behavior