写于:2014-05-24 最近一次更新:2015-08-06
Intent:
查看网络活动状态
查看特定端口被谁使用或特定PID程序使用了哪个端口
Oneway:
查看本机PID为691的程序使用的端口
[root@diagmap]# netstat -nlptu |awk '{print $4,$7}' | grep 691
0.0.0.0:22 691/sshd
查看本机端口22被哪个程序占用
[root@diagmap]# netstat -nlptu |awk '{print $4,$7}' | grep 22
0.0.0.0:22 691/sshd
|