ubuntu查看日志中访问次数前十的ip

cat 路径/access.log |cut -d ' ' -f 1 |sort |uniq -c | sort -nr | awk '{print $0 }' | head -n 10

原文地址:https://www.cnblogs.com/you-jia/p/4738469.html