Linux Networking Cheat Sheet/Read packets from pcap

Inspect a saved packet capture file.

Section: Packet Capture and Throughput

Read packets from pcap

bash
bash
tcpdump -nn -r capture.pcap
Explanation

Inspect a saved packet capture file.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Packet Capture and Throughput
Write packets to pcap
Save a capture to a file for Wireshark analysis.
OpenIn sheetbashsame section
Capture packets on interface
Capture packets on a specific network interface.
OpenIn sheetbashsame section
Capture one port
Capture traffic for a single TCP port.
OpenIn sheetbashsame section
Capture one host
Capture traffic to or from a host.
OpenIn sheetbashsame section
Run combined ping and traceroute
Continuously test latency and path quality.
OpenIn sheetbashsame section
Start iperf3 server
Start a throughput test server.
OpenIn sheetbashsame section