I'm trying to write the results of tcpdump to a text file. I am not interested in saving a pcap file to use later, I just need exactly what tcpdump returns in plain text (the ips and timestamps of connections).
I tried this but it doesn't seem to be working:
tcpdump port 5000 and '(tcp-syn)!=0' > network_output.txt
This command should save to the textfile but instead it echo's the output right in the termial as if I left the
> network_output.txt off.