<?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> &#187; Linux</title>
	<atom:link href="http://freddysmind.com/blog/category/computers/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://freddysmind.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 13:10:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Restart&#160;command</title>
		<link>http://freddysmind.com/blog/2010/02/restart-command/</link>
		<comments>http://freddysmind.com/blog/2010/02/restart-command/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:06:09 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=508</guid>
		<description><![CDATA[http://www.ubuntugeek.com/service-command-in-ubuntu-810-intrepid-server.html sudo reboot]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntugeek.com/service-command-in-ubuntu-810-intrepid-server.html">http://www.ubuntugeek.com/service-command-in-ubuntu-810-intrepid-server.html</a></p>
<p>sudo reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/02/restart-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Display&#160;variable</title>
		<link>http://freddysmind.com/blog/2010/02/linux-display-variable/</link>
		<comments>http://freddysmind.com/blog/2010/02/linux-display-variable/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 17:47:49 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=503</guid>
		<description><![CDATA[export DISPLAY=`who -m &#124; awk &#8216;{print $6}&#8217; &#124; sed -e &#8216;s/(//g&#8217; -e &#8216;s/)//g&#8217;`:0]]></description>
			<content:encoded><![CDATA[<p>export DISPLAY=`who -m | awk &#8216;{print $6}&#8217; | sed -e &#8216;s/(//g&#8217; -e &#8216;s/)//g&#8217;`:0</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/02/linux-display-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCP</title>
		<link>http://freddysmind.com/blog/2010/01/scp/</link>
		<comments>http://freddysmind.com/blog/2010/01/scp/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 22:00:48 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=499</guid>
		<description><![CDATA[scp username@boxname:]]></description>
			<content:encoded><![CDATA[<p>scp username@boxname:<source-path> <destination-path></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/01/scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vi&#160;shortcuts</title>
		<link>http://freddysmind.com/blog/2010/01/vi-shortcuts/</link>
		<comments>http://freddysmind.com/blog/2010/01/vi-shortcuts/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 14:42:31 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=484</guid>
		<description><![CDATA[http://www.eec.com/business/vi.html vi]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.eec.com/business/vi.html">http://www.eec.com/business/vi.html</a></p>
<p><a href="http://freddysmind.com/blog/wp-content/uploads/2010/01/vi.html">vi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/01/vi-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is&#160;2&gt;&amp;1</title>
		<link>http://freddysmind.com/blog/2009/12/what-is-21/</link>
		<comments>http://freddysmind.com/blog/2009/12/what-is-21/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 18:37:02 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[black hole]]></category>
		<category><![CDATA[Bourne]]></category>
		<category><![CDATA[Korn]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=423</guid>
		<description><![CDATA[From http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm One of the common questions about the Bourne and Korn shells is why only the second command will redirect both stdout and stderr (13.1) to a file: $ cat food 2&#62;&#38;1 &#62;file cat: can't open food $ cat food &#62;file 2&#62;&#38;1 $ Although lots of sh manual pages don&#8217;t mention this, the shell reads arguments from [...]]]></description>
			<content:encoded><![CDATA[<h2>From <a href="http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm">http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm</a></h2>
<h2></h2>
<h2><span style="font-weight: normal; font-size: 13px;">One of the common questions about the Bourne and Korn shells is why only the second command will redirect both <span><em>stdout</em> and <em>stderr</em> (<a title="Using Standard Input and Output" href="http://docstore.mik.ua/orelly/unix/upt/ch13_01.htm#UPT-ART-1023">13.1</a>)</span> to a file:</span></h2>
<blockquote>
<pre>$ <code><strong>cat food 2&gt;&amp;1 &gt;file</strong></code>
cat: can't open food
$ <code><strong>cat food &gt;file 2&gt;&amp;1</strong></code>
$</pre>
</blockquote>
<p>Although lots of <em>sh</em> manual pages don&#8217;t mention this, the shell reads arguments from left to right.</p>
<ol>
<li>On the first command line, the shell sees <code>2&gt;&amp;1</code> first. That means &#8220;make the standard error (file descriptor 2) go to the same place as the standard output (fd1) is going.&#8221; There&#8217;s no effect because both fd2 and fd1 are already going to the terminal. Then<code>&gt;file</code> redirects fd1 (<em>stdout</em>) to <code>file</code>. But fd2 (<em>stderr</em>) is still going to the terminal.</li>
<li>On the second command line, the shell sees <code>&gt;file</code> first and redirects <em>stdout</em> to <code>file</code>. Next <code>2&gt;&amp;1</code> sends fd2 (<em>stderr</em>) to the same place fd1 is going - that&#8217;s to the file. And that&#8217;s what you want.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/12/what-is-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample bashrc&#160;file</title>
		<link>http://freddysmind.com/blog/2009/11/sample-bashrc-file/</link>
		<comments>http://freddysmind.com/blog/2009/11/sample-bashrc-file/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 22:19:28 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Configuration]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=412</guid>
		<description><![CDATA[http://tldp.org/LDP/abs/html/sample-bashrc.html sample-bashrc]]></description>
			<content:encoded><![CDATA[<p><a href="http://tldp.org/LDP/abs/html/sample-bashrc.html">http://tldp.org/LDP/abs/html/sample-bashrc.html</a></p>
<p><a href="http://freddysmind.com/blog/wp-content/uploads/2009/11/sample-bashrc.html">sample-bashrc</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/11/sample-bashrc-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vi Search and&#160;Replace</title>
		<link>http://freddysmind.com/blog/2009/10/vi-search-and-replace/</link>
		<comments>http://freddysmind.com/blog/2009/10/vi-search-and-replace/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:11:07 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=405</guid>
		<description><![CDATA[:%s/search_string/replacement_string/g &#8216;g&#8217; stands for global, not sure what other parameters you can place there.]]></description>
			<content:encoded><![CDATA[<p>:%s/search_string/replacement_string/g</p>
<p>&#8216;g&#8217; stands for global, not sure what other parameters you can place there.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/10/vi-search-and-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete white space from text&#160;file</title>
		<link>http://freddysmind.com/blog/2009/09/delete-white-space-from-text-file/</link>
		<comments>http://freddysmind.com/blog/2009/09/delete-white-space-from-text-file/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 18:34:43 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=384</guid>
		<description><![CDATA[Linux command: cat filename &#124; tr -d [:space:] This removes the whitespace and displays the results as standard out, you can then add a little bit to the command to save it to a file, like so: cat filename &#124; tr -d [:space:] &#62;&#62; fileoutname.txt]]></description>
			<content:encoded><![CDATA[<p>Linux command:</p>
<p>cat filename | tr -d [:space:]</p>
<p>This removes the whitespace and displays the results as standard out, you can then add a little bit to the command to save it to a file, like so:</p>
<p>cat filename | tr -d [:space:] &gt;&gt; fileoutname.txt</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/09/delete-white-space-from-text-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crazy&#160;Storage</title>
		<link>http://freddysmind.com/blog/2009/09/crazy-storage/</link>
		<comments>http://freddysmind.com/blog/2009/09/crazy-storage/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 21:00:34 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=376</guid>
		<description><![CDATA[BackBlaze Storage Server Props for sharing all of the great information, the only problem I have&#8230; is now I want to build one. Perhaps on a miniature scale, 67 terabytes seems a bit excessive.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/">BackBlaze Storage Server</a></p>
<p>Props for sharing all of the great information, the only problem I have&#8230; is now I want to build one.</p>
<p>Perhaps on a miniature scale, 67 terabytes seems a bit excessive.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/09/crazy-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portable&#160;Linux</title>
		<link>http://freddysmind.com/blog/2009/07/portable-linux/</link>
		<comments>http://freddysmind.com/blog/2009/07/portable-linux/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:36:14 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=299</guid>
		<description><![CDATA[http://lifehacker.com/5319596/usbuntu-live-creator-makes-bootable-linux-usb-drives I&#8217;m still not 100% when/where/why I would use this. But it&#8217;s a pretty fantastic concept, portable Linux. In an age of virtualization, we can now combine OS&#8217;s, and open an OS inside another OS. I wonder what fantastic/creative ways people will find to use this.]]></description>
			<content:encoded><![CDATA[<p><a href="http://lifehacker.com/5319596/usbuntu-live-creator-makes-bootable-linux-usb-drives">http://lifehacker.com/5319596/usbuntu-live-creator-makes-bootable-linux-usb-drives</a></p>
<p>I&#8217;m still not 100% when/where/why I would use this. But it&#8217;s a pretty fantastic concept, portable Linux.</p>
<p>In an age of virtualization, we can now combine OS&#8217;s, and open an OS inside another OS. I wonder what fantastic/creative ways people will find to use this.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/07/portable-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
