Why my pcap files are getting empty automatically?

Why my pcap files are getting empty automatically? After 2-3 minutes when I check back ,there is nothing left to see in all the .pcap files? What to do now?

you should use wireshark to view .pcap files.

Hey are you using the right tcpdump command to write the data into the pcap file, can you please check the references that are attached below the taskboard. It’s probable you might be using > to write data into the pcap file.

you can use this link to write into a pcap file.
https://www.tecmint.com/12-tcpdump-commands-a-network-sniffer-tool/

also this might help

I’m using -w to write the file, Still the same issue.

Can you check if the file size remains same or its changing before and after it is happening