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