Linux查看文件大小,查看ssh登录错误ip并统计次数
cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'
查看ip访问错误次数统计
cat /dev/null > nohup.out 清空nohup文件
du -sh * 查看所有的当前目录的文件夹大小,例如cd / 然后执行这句。
cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'
查看ip访问错误次数统计
cat /dev/null > nohup.out 清空nohup文件
du -sh * 查看所有的当前目录的文件夹大小,例如cd / 然后执行这句。