Linux 常用命令|配置
2015-09-24 本文已影响23人
果酱一一
linux 查看系统版本
cat /etc/issue
Paste_Image.png
uniq
uniq -uc 统计唯一行
uniq -dc 统计重复行
Paste_Image.png
sort
统计IP访问
awk '{print $1}' access.log | sort | uniq -c | sort -k1,1nr
cat /etc/issue
Paste_Image.png
uniq -uc 统计唯一行
uniq -dc 统计重复行
Paste_Image.png
统计IP访问
awk '{print $1}' access.log | sort | uniq -c | sort -k1,1nr