4

To display content of pcap file , we use :

tcpdump -r /Path/to/syscontection.pcap;

However, this command line does not follow the pcap file on realtime , like tail -f which follows a plain text .

  • Is there an option with tcpdump which acts like -f of tail ?

OR

  • Is there an option with tail that can read pcap file?

OR

  • Something else ?
  • tcpdump acts exactly what you want when running with no parameters. – Ipor Sircer Sep 19 '16 at 14:28
  • 3
    Possible duplicate of How to process/pipe TCPDUMPs output in realtime. I also recommend checking the man page before asking a question, it might save you some time. – Hatclock Sep 19 '16 at 14:30
  • 2
    This is not a duplicate question. He is asking about tcpdump's input not output. – rudimeier Sep 19 '16 at 14:49
9
tail -c +1 -f /Path/to/syscontection.pcap | tcpdump -l -r -
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.