Browsed by
Tag: cat

Linux – Cat command

Linux – Cat command

Heres a nice something some of you may find useful: root@sat1 [/usr/local/apache/domlogs/ommited]# cat ommitedsite.com | awk ‘{print $1}’ | cut -d: -f1 | sort | uniq -c | sort -n root@sat1 [/usr/local/apache/domlogs/ommited]# Basically says how many times the ip has hit your site: 182 81.82.240.15 192 202.28.180.202 203 188.220.62.52 204 41.223.251.18 225 81.27.128.142 228 124.157.129.20 Looks good in terminal, usually I use it for checking if a box of mine is getting flooded or if theres simply getting too much…

Read More Read More