tcpdump:一种命令行网络抓包工具,用于在网络接口上捕获并显示数据包(常用于排查网络故障、分析协议、验证流量)。它主要基于 libpcap 工作。除抓 TCP 外,也能抓 UDP、ICMP 等多种协议。
/ˌtiː siː piː ˈdʌmp/
I used tcpdump to see whether the server is receiving requests.
我用 tcpdump 查看服务器是否收到了请求。
Using tcpdump with a BPF filter, the engineer captured only HTTPS traffic on port 443 and saved it to a pcap file for later analysis.
工程师使用带 BPF 过滤器的 tcpdump,只捕获 443 端口上的 HTTPS 流量,并保存为 pcap 文件以便后续分析。
tcpdump 由 TCP(Transmission Control Protocol,传输控制协议)+ dump(“转储/倾倒”,引申为“把内容输出出来”)构成。最初强调用于查看 TCP 报文的“输出”,后来扩展为通用的网络抓包与打印工具名称。