题解 | #netstat练习1-查看各个状态的连接数#
netstat练习1-查看各个状态的连接数
https://www.nowcoder.com/practice/f46a302d14e04b149bb50670f255293a
#!/bin/bash cat nowcoder.txt | grep "tcp"|awk '{a[$6]++}END{for(i in a)print i,a[i]}'| sort -rn -k2
netstat练习1-查看各个状态的连接数
https://www.nowcoder.com/practice/f46a302d14e04b149bb50670f255293a
#!/bin/bash cat nowcoder.txt | grep "tcp"|awk '{a[$6]++}END{for(i in a)print i,a[i]}'| sort -rn -k2
相关推荐