Save a capture to a file for Wireshark analysis.
Section: Packet Capture and Throughput
Write packets to pcap
bash
bash
sudo tcpdump -i any -w capture.pcapExplanation
Save a capture to a file for Wireshark analysis.
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
Capture packets on interface
Capture packets on a specific network interface.
Run combined ping and traceroute
Continuously test latency and path quality.