You can combine -G {sec} (rotate dump files every x seconds) and -W {count} (limit # of dump files) to get what you want:tcpdump -G 15 -W 1 -w myfile -i eth0 'port 8080'将运行15秒,然后停止.将1.5小时变成几秒钟,它应该可以工作.would run for 15 seconds and then stop. Turn 1.5 hours into seconds and it should work. 这篇关于如何安排tcpdump在特定时间段内运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-13 04:29