<?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>usefulgeek &#187; linux</title>
	<atom:link href="http://www.usefulgeek.com/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.usefulgeek.com/blog</link>
	<description>rants, reviews and kind hearted messages from some geeks</description>
	<lastBuildDate>Mon, 19 Jul 2010 16:48:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Find Text and Find/Replace Easier Than You Think in Linux</title>
		<link>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 09:37:49 +0000</pubDate>
		<dc:creator>drale</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[rpl]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=154</guid>
		<description><![CDATA[How to search all files for a text string:
grep -lr string ./ &#62; results.txt
-l will print only the path and file names of the matches.
Search all files of a certain name for a certain string:
grep -lr string ./ &#124; grep filename
Yes, do specify ./ if you are doing all directories within current.
(source and more info)
Find [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>How to search all files for a text string:</strong></p>
<pre>grep -lr string ./ &gt; results.txt</pre>
<p><code>-l</code> will print only the path and file names of the matches.</p>
<p>Search all files of a certain name for a certain string:</p>
<pre>grep -lr string ./ | grep filename</pre>
<p>Yes, do specify ./ if you are doing all directories within current.</p>
<p>(<a href="http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/">source and more info</a>)</p>
<p><strong>Find an replace a string in files:</strong><br />
Searching for a way to do this usually leads me to finding fancy scripts that don&#8217;t work right, are scary (create temp files, etc) or aren&#8217;t recursive. Just have backups at hand and test the following combination of <code>find</code> and <code>sed</code> before unleashing it, because it works great! You can test it by replacing <code>sed</code> with <code>grep</code></p>
<pre>find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;</pre>
<p>Within specific file names/extentions&#8230;</p>
<pre>find ./ -iname \*.htm\* -exec sed -i 's/\-2005/\-2007/g' {} \;</pre>
<p>Don&#8217;t forget to use escape \ as seen above. And if your strings contain forward slash / just use a different delimiter such as pipe | or escape it.</p>
<p>You can also install rpl, as shown in the source pdf, for even cleaner line of code for executing your find and replace.</p>
<p>(<a href="http://www.sb.fsu.edu/~xray/Manuals/Search+Replace-v.2.pdf">source and more info</a>) A nice pdf to keep by your side.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source storage server</title>
		<link>http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 02:29:28 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[other]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openfiler]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=152</guid>
		<description><![CDATA[This is not going to be a full review, but more a general take on things.
Since moving from VMware Server to ESXi to host my virtual machines, I&#8217;ve been very interested in looking into some more of the advanced features of ESX and ESXi yet most of these require iSCSI.  I remember from a few [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/' rel='bookmark' title='Permanent Link: Remove bonded interface in OpenFiler'>Remove bonded interface in OpenFiler</a> <small>I decided to try and use NIC bonding in OpenFiler...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This is not going to be a full review, but more a general take on things.</p>
<p>Since moving from VMware Server to ESXi to host my virtual machines, I&#8217;ve been very interested in looking into some more of the advanced features of ESX and ESXi yet most of these require iSCSI.  I remember from a few years back using <a href="http://openfiler.com/">Openfiler</a> to do some simple samba file sharing, and remembered it supported iSCSI as one method of giving out storage.</p>
<p>Now, I&#8217;ve yet to use any of the features of ESX that require iSCSI, or even setup <a href="http://openfiler.com/">Openfiler</a> to export storage via iSCSI, but I have been using it for simple file sharing and must say I&#8217;m quite impressed.</p>
<p>Setup is a breeze, taking about 20 minutes on an older PC. Management is done almost entirely through a <a href="http://openfiler.com/products/screenshots/">web interface</a>, that is very easy to use.  Unlink many of the other appliance packages out there, the web interface is very simple and straight forward.  Very much impressed with that.</p>
<p>Over the next few months I&#8217;ll be exploring <a href="http://openfiler.com/">Openfiler</a> much more, and hopefully getting into some of it&#8217;s more advanced features including interface bonding, md devices and clustering.  I plan to keep updating as things more along.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/' rel='bookmark' title='Permanent Link: Remove bonded interface in OpenFiler'>Remove bonded interface in OpenFiler</a> <small>I decided to try and use NIC bonding in OpenFiler...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/10/open-source-storage-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OhioLinux September 25-27, 2009</title>
		<link>http://www.usefulgeek.com/blog/2009/09/ohiolinux-september-25-27-2009/</link>
		<comments>http://www.usefulgeek.com/blog/2009/09/ohiolinux-september-25-27-2009/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:05:04 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[olf]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/2009/09/24/ohiolinux-september-25-27-2009/</guid>
		<description><![CDATA[This years OhioLinux Fest starts tomorrow and runs until Sunday.  I&#8217;ll be there.  You should to.  More info at the OhioLinux website


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This years OhioLinux Fest starts tomorrow and runs until Sunday.  I&#8217;ll be there.  You should to.  More info at <a href="http://www.ohiolinux.org">the OhioLinux website</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/09/ohiolinux-september-25-27-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Check speed of connected link in Linux</title>
		<link>http://www.usefulgeek.com/blog/2009/07/check-speed-of-connected-link-in-linux/</link>
		<comments>http://www.usefulgeek.com/blog/2009/07/check-speed-of-connected-link-in-linux/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 21:09:22 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=135</guid>
		<description><![CDATA[If you&#8217;ve ever wanted to check on the status of your Ethernet links, you&#8217;ve probably used the ip commands (or ifconfig) to view some basic information.  However, you might have noticed these commands do not tell you what the current link speed is, or other possibly important details.  That&#8217;s where ethtool comes in.

[jonmoore@megaton ~]$ sudo [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/' rel='bookmark' title='Permanent Link: Linux IPv6 Neighbor Discovery'>Linux IPv6 Neighbor Discovery</a> <small>Using ping6 and ip neigh it&#8217;s possible to discover other...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/' rel='bookmark' title='Permanent Link: Find Text and Find/Replace Easier Than You Think in Linux'>Find Text and Find/Replace Easier Than You Think in Linux</a> <small>How to search all files for a text string: grep...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever wanted to check on the status of your Ethernet links, you&#8217;ve probably used the ip commands (or ifconfig) to view some basic information.  However, you might have noticed these commands do not tell you what the current link speed is, or other possibly important details.  That&#8217;s where <code>ethtool</code> comes in.</p>
<pre>
[jonmoore@megaton ~]$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: <strong>1000Mb/s</strong>
Duplex: <strong>Full</strong>
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes</pre>
<p>As you can see, <code>ethtool</code> will show you the support modes, as well as the current mode.  From the above example, I&#8217;m currently connected at 1000Mb/s at Full Duplex.  Very nice.</p>
<p>Check out the ethtool man page for more useful commands.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/' rel='bookmark' title='Permanent Link: Linux IPv6 Neighbor Discovery'>Linux IPv6 Neighbor Discovery</a> <small>Using ping6 and ip neigh it&#8217;s possible to discover other...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/' rel='bookmark' title='Permanent Link: Find Text and Find/Replace Easier Than You Think in Linux'>Find Text and Find/Replace Easier Than You Think in Linux</a> <small>How to search all files for a text string: grep...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/07/check-speed-of-connected-link-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extend the timeout on SSH connections</title>
		<link>http://www.usefulgeek.com/blog/2009/05/extend-the-timeout-on-ssh-connections/</link>
		<comments>http://www.usefulgeek.com/blog/2009/05/extend-the-timeout-on-ssh-connections/#comments</comments>
		<pubDate>Fri, 29 May 2009 18:56:00 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=122</guid>
		<description><![CDATA[A quick google search will quickly answer this question, but I&#8217;ve found myself asking it a few times lately.  Often when I let an SSH session go idle, I&#8217;ll end up being disconnected.  By adding ServerAliveInterval 60 to ~/.ssh/config I&#8217;ve managed to limit this from happening.
There is also a similar server side fix for this.  [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/remote-packet-capture/' rel='bookmark' title='Permanent Link: Remote packet capture'>Remote packet capture</a> <small>Had a need to capture some traffic on the remote...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A quick google search will quickly answer this question, but I&#8217;ve found myself asking it a few times lately.  Often when I let an SSH session go idle, I&#8217;ll end up being disconnected.  By adding <code>ServerAliveInterval 60</code> to <code>~/.ssh/config</code> I&#8217;ve managed to limit this from happening.</p>
<p>There is also a similar server side fix for this.  Consult <code>man ssh_config</code> and <code>man sshd_config</code> for more details.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2010/01/remote-packet-capture/' rel='bookmark' title='Permanent Link: Remote packet capture'>Remote packet capture</a> <small>Had a need to capture some traffic on the remote...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/05/extend-the-timeout-on-ssh-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating empty files in Linux</title>
		<link>http://www.usefulgeek.com/blog/2009/03/creating-empty-files-in-linux/</link>
		<comments>http://www.usefulgeek.com/blog/2009/03/creating-empty-files-in-linux/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 20:14:42 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=84</guid>
		<description><![CDATA[I had a need for several files of various sizes to do some network testing with.  I found a very good us for dd here.
dd if=/dev/zero of=10mb-file.bin bs=1024k count=n
Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed.  Need a 10Mb file, n = [...]


Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/burn-iso-from-command-line-in-linux/' rel='bookmark' title='Permanent Link: Burn ISO from command line in Linux'>Burn ISO from command line in Linux</a> <small>Quick and simple way of burning an ISO image from...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/' rel='bookmark' title='Permanent Link: Find Text and Find/Replace Easier Than You Think in Linux'>Find Text and Find/Replace Easier Than You Think in Linux</a> <small>How to search all files for a text string: grep...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/' rel='bookmark' title='Permanent Link: Remove bonded interface in OpenFiler'>Remove bonded interface in OpenFiler</a> <small>I decided to try and use NIC bonding in OpenFiler...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I had a need for several files of various sizes to do some network testing with.  I found a very good us for <code>dd</code> here.</p>
<p><code>dd if=/dev/zero of=10mb-file.bin bs=1024k count=n</code></p>
<p>Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed.  Need a 10Mb file, n = 10.  Need a 100Mb file&#8230; n = 100.  You get the idea.</p>


<p>Related posts:<ol><li><a href='http://www.usefulgeek.com/blog/2009/11/burn-iso-from-command-line-in-linux/' rel='bookmark' title='Permanent Link: Burn ISO from command line in Linux'>Burn ISO from command line in Linux</a> <small>Quick and simple way of burning an ISO image from...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/find-text-and-findreplace-easier-than-you-think-in-linux/' rel='bookmark' title='Permanent Link: Find Text and Find/Replace Easier Than You Think in Linux'>Find Text and Find/Replace Easier Than You Think in Linux</a> <small>How to search all files for a text string: grep...</small></li>
<li><a href='http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/' rel='bookmark' title='Permanent Link: Remove bonded interface in OpenFiler'>Remove bonded interface in OpenFiler</a> <small>I decided to try and use NIC bonding in OpenFiler...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2009/03/creating-empty-files-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arrow keys not working in VMware?</title>
		<link>http://www.usefulgeek.com/blog/2008/12/arrow-keys-not-working-in-vmware/</link>
		<comments>http://www.usefulgeek.com/blog/2008/12/arrow-keys-not-working-in-vmware/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 17:41:26 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=67</guid>
		<description><![CDATA[Mine didn&#8217;t  
Luckily Google helped me find a solutation rather quickly, and using information from this site I was able to get things working again.
Basically, I added xkeymap.nokeycodeMap = true  to /etc/vmware/config and things started working right.  Another on the forum suggested remapping the keys, but I didn&#8217;t try that.


No related posts.
Related [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Mine didn&#8217;t <img src='http://www.usefulgeek.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Luckily Google helped me find a solutation rather quickly, and using information from <a href="http://communities.vmware.com/thread/177321">this site</a> I was able to get things working again.</p>
<p>Basically, I added <code>xkeymap.nokeycodeMap = true </code> to <code>/etc/vmware/config</code> and things started working right.  Another on the forum suggested remapping the keys, but I didn&#8217;t try that.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2008/12/arrow-keys-not-working-in-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super simple, limited and basic look at tar</title>
		<link>http://www.usefulgeek.com/blog/2008/11/super-simple-limited-and-basic-look-at-tar/</link>
		<comments>http://www.usefulgeek.com/blog/2008/11/super-simple-limited-and-basic-look-at-tar/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 00:42:00 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=58</guid>
		<description><![CDATA[Create a tar archive
tar -c -f archive.tar *
Create a compressed archive with gzip
tar -c -z -f archive.tar.gz *
You can also condense down the commands like so..
tar -czf archive.tar.gz *


No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Create a tar archive<br />
<code>tar -c -f archive.tar *</code></p>
<p>Create a compressed archive with gzip<br />
<code>tar -c -z -f archive.tar.gz *</code></p>
<p>You can also condense down the commands like so..<br />
<code>tar -czf archive.tar.gz *</code></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2008/11/super-simple-limited-and-basic-look-at-tar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
