2019-06-12

使用netstat查看系统中的socket状态

代码:


[code lang="bash"]netstat -n | awk '/^tcp/ ++S[$NF] END for(a in S) print a, S[a]'[/code]

 

没有评论:

发表评论