<?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"
	>

<channel>
	<title>Just answer the F*#king question &#187; Linux</title>
	<atom:link href="http://www.jatfq.com/archives/category/usefull-stuff/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jatfq.com</link>
	<description>Saving the world from dicks with forum logins ...</description>
	<pubDate>Mon, 03 Nov 2008 17:18:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Blocking the searchme.com bot</title>
		<link>http://www.jatfq.com/archives/54</link>
		<comments>http://www.jatfq.com/archives/54#comments</comments>
		<pubDate>Tue, 15 Jul 2008 07:04:49 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/54</guid>
		<description><![CDATA[Nice idea for a search engine, however, their bot is a disrespectfull bastard, doesn&#8217;t obey robots.txt, plus as it&#8217;s a visual search engine, processes Javascript tracking which throws your stats off.
Block it using iptables thus
iptables -I INPUT -m iprange --src-range 165.193.254.1-165.193.254.254  -j DROP
iptables -I INPUT -m iprange --src-range 208.111.154.1-208.111.154.254  -j DROP









]]></description>
			<content:encoded><![CDATA[<p>Nice idea for a search engine, however, their bot is a disrespectfull bastard, doesn&#8217;t obey robots.txt, plus as it&#8217;s a visual search engine, processes Javascript tracking which throws your stats off.</p>
<p>Block it using iptables thus</p>
<p><code>iptables -I INPUT -m iprange --src-range 165.193.254.1-165.193.254.254  -j DROP</code><br />
<code>iptables -I INPUT -m iprange --src-range 208.111.154.1-208.111.154.254  -j DROP</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F54&amp;title=Blocking+the+searchme.com+bot" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/54/feed</wfw:commentRss>
		</item>
		<item>
		<title>Why does df and du show different used disk space?</title>
		<link>http://www.jatfq.com/archives/9</link>
		<comments>http://www.jatfq.com/archives/9#comments</comments>
		<pubDate>Sun, 19 Aug 2007 18:40:53 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/archives/9</guid>
		<description><![CDATA[Simple answer:
Do a 
lsof &#124; grep "deleted"
and see what shows up. du shows the usage, df shows free space BUT still counts files that have been deleted but are open by a process. Some examples of these types of files would be Apache access or error logs that have been deleted but the server has [...]]]></description>
			<content:encoded><![CDATA[<p>Simple answer:</p>
<p>Do a </p>
<p><code>lsof | grep "deleted"</code></p>
<p>and see what shows up. du shows the usage, df shows free space BUT still counts files that have been deleted but are open by a process. Some examples of these types of files would be Apache access or error logs that have been deleted but the server has not been restarted or something I came across was a duff MYSQL process locking table data file thats had been deleted.</p>
<p>Simple option to get rid of these files is to restart your server, but, if this is not possible look at the PID that has the file locked and see if you are able to kill or restart the process.</p>
<p>I had no clue, but this guy did:</p>
<p><a href="http://www.walkernews.net/2007/07/13/df-and-du-command-show-different-used-disk-space/">http://www.walkernews.net/2007/07/13/df-and-du-command-show-different-used-disk-space/</a></p>
<p>so kudus to him.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F9&amp;title=Why+does+df+and+du+show+different+used+disk+space%3F" title="Stumble it!"><img src="/icon_stumbleupon.gif" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/9/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
