Linux 网络状态

xiefei0 2012-01-10

netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r | more

netstat -na|grep SYN|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r | more
netstat -n|awk '/^tcp/{++S[$NF]} END {for(a in S) print a,S[a]}'
pkill -KILL -t pts/0
 

相关推荐

whats / 0评论 2011-04-10