<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Salomon Johns &#187; cat</title>
	<atom:link href="http://salomonjohns.com/tag/cat/feed/" rel="self" type="application/rss+xml" />
	<link>http://salomonjohns.com</link>
	<description>Just a personal blog.</description>
	<lastBuildDate>Fri, 20 May 2011 20:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Linux &#8211; Cat command</title>
		<link>http://salomonjohns.com/2009/10/linux-cat-command/</link>
		<comments>http://salomonjohns.com/2009/10/linux-cat-command/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 12:35:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://salomonjohns.com/?p=94</guid>
		<description><![CDATA[Heres a nice something some of you may find useful: root@sat1 [/usr/local/apache/domlogs/ommited]# cat ommitedsite.com &#124; awk &#8216;{print $1}&#8217; &#124; cut -d: -f1 &#124; sort &#124; uniq -c &#124; 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 [...]]]></description>
			<content:encoded><![CDATA[<p>Heres a nice something some of you may find useful:</p>
<p>root@sat1 [/usr/local/apache/domlogs/ommited]# cat ommitedsite.com | awk &#8216;{print $1}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n<br />
root@sat1 [/usr/local/apache/domlogs/ommited]#</p>
<p>Basically says how many times the ip has hit your site:</p>
<p>182 81.82.240.15<br />
192 202.28.180.202<br />
203 188.220.62.52<br />
204 41.223.251.18<br />
225 81.27.128.142<br />
228 124.157.129.20</p>
<p>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 traffic. That command looks like this:</p>
<p>netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>Obviously if your getting too much and want to analyse the outpout in a text file, append &gt; output.txt, and use vi, or nano to look into it.</p>
<p>netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n &gt; output.txt</p>
<p>Hope this helps some of you.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://salomonjohns.com/2009/10/linux-cat-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

