题解 | #netstat练习1-查看各个状态的连接数#
netstat练习1-查看各个状态的连接数
https://www.nowcoder.com/practice/f46a302d14e04b149bb50670f255293a
#!/bin/bash grep tcp | awk -F ' ' '{arr[$6]++}END{ for (i in arr){ printf "%s %d \n",i,arr[i] } }'|sort -rnk2
netstat练习1-查看各个状态的连接数
https://www.nowcoder.com/practice/f46a302d14e04b149bb50670f255293a
#!/bin/bash grep tcp | awk -F ' ' '{arr[$6]++}END{ for (i in arr){ printf "%s %d \n",i,arr[i] } }'|sort -rnk2
相关推荐