tcpdump后台抓包并输出给wireshark

# 先进到/tmp 目录执行,方便Filezila 传输

# 开启抓包
nohup tcpdump -i eth0 -s0 -nnA 'port 22' -w dump22.pcap &
[1] 15022

# 查询pid
ps -ef|grep tcpdump |grep -v 'grep'


# 结束抓包
kill 15022

参考

http://www.javashuo.com/article/p-yhchxcnk-kn.htmlhtml

相关文章
相关标签/搜索