add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

36
pages.zh/linux/tshark.md Normal file
View File

@@ -0,0 +1,36 @@
# tshark
> 数据包分析工具Wireshark的命令行版本。
> 更多信息:<https://tshark.dev/>.
- 监控本地主机上的所有内容:
`tshark`
- 仅捕获匹配特定捕获过滤器的数据包:
`tshark -f '{{udp port 53}}'`
- 仅显示匹配特定输出过滤器的数据包:
`tshark -Y '{{http.request.method == "GET"}}'`
- 使用特定协议例如HTTP解码TCP端口
`tshark -d tcp.port=={{8888}},{{http}}`
- 指定捕获输出的格式:
`tshark -T {{json|text|ps|…}}`
- 选择特定字段进行输出:
`tshark -T {{fields|ek|json|pdml}} -e {{http.request.method}} -e {{ip.src}}`
- 将捕获的数据包写入文件:
`tshark -w {{path/to/file}}`
- 分析文件中的数据包:
`tshark -r {{path/to/file.pcap}}`