摘要: #!bin/bash#功能:统计当前 Linux 系统中可以登录计算机的账户有多少个#作者:liusingbon#方法1grep 'bash$' /etc/passwd|wc -l#方法2awk -f: '/bash$/{x++} end{print x}' /etc/passwd 阅读全文
posted @ 2019-06-21 20:45 巴州夜雨 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #!bin/bash#功能:统计每个远程IP访问本机apache的次数#作者:liusingbonawk '{ip[$1]++} END{for(i in ip){print ip[i],i}}' /var/log/httpd/access_log 阅读全文
posted @ 2019-06-21 20:39 巴州夜雨 阅读(257) 评论(0) 推荐(0) 编辑