tcpdump -w capture.pcap -i eth0

Category: Networking

tcpdump -w capture.pcap -i eth0

Write packet capture to a file

Saves captured packets to a file for later analysis with tools like Wireshark.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.