• 工作中常用命令统计


    netstat -antp|grep 20099|grep "68.25"|grep ESTABLISHED|awk '{print $7}'|awk -F '/' '{print $1,$2}'|sort |uniq  -c|sort  -nr

     

    netstat -antp|grep 20099|grep "68.25"|grep ESTABLISHED|awk '{print $5}' |awk -F ':' '{print $1}'|sort |uniq  -c |sort

     

     

    netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

  • 相关阅读:
    Redis
    Redis
    运维
    Redis
    Redis
    Redis
    Redis
    Redis
    Redis
    Spring
  • 原文地址:https://www.cnblogs.com/xull0651/p/7604119.html
Copyright © 2020-2023  润新知