<?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>TBNL &#187; bash</title>
	<atom:link href="http://www.tibobeijen.nl/blog/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tibobeijen.nl</link>
	<description>...another view on the web and how it's built</description>
	<lastBuildDate>Tue, 15 Jun 2010 17:17:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux-Fu @ phpGG</title>
		<link>http://www.tibobeijen.nl/blog/2009/04/17/linux-fu-phpgg/</link>
		<comments>http://www.tibobeijen.nl/blog/2009/04/17/linux-fu-phpgg/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:32:52 +0000</pubDate>
		<dc:creator>Tibo Beijen</dc:creator>
				<category><![CDATA[events]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpgg]]></category>

		<guid isPermaLink="false">http://www.tibobeijen.nl/?p=273</guid>
		<description><![CDATA[Last night there was a phpGG (dutch php user group) meeting in Utrecht with a presentation by Lorna Jane titled &#8216;Linux-Fu&#8217;. Attended by about 10 people, console basics &#038; tricks were addressed. I&#8217;m not unfamiliar with Linux so the basics weren&#8217;t that new. For development I mainly use IDE&#8217;s so I just use the console [...]]]></description>
			<content:encoded><![CDATA[<p>Last night there was a phpGG (dutch php user group) <a href="http://www.phpgg.nl/april2009">meeting</a> in Utrecht with a presentation by <a href="http://www.lornajane.net/posts/2009/Speaking-at-phpGG">Lorna Jane</a> titled &#8216;Linux-Fu&#8217;. Attended by about 10 people, console basics &#038; tricks were addressed. I&#8217;m not unfamiliar with Linux so the basics weren&#8217;t that new. For development I mainly use IDE&#8217;s so I just use the console to edit the occasional config file, create some symlinks, that kind of stuff. For those tasks I find myself sticking to set of commands I&#8217;ve learned and just occasionally taking the time to do an in-depth google search for better ways to get the job done. So with regard to linux shell trickery there are things to learn for me. Neat timesavers:</p>
<p>Switching between current and previous directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> -</pre></div></div>

<p>Going home can be done without the ~:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span></pre></div></div>

<p>How &#8216;grep&#8217; can beat your IDE. I&#8217;ve been playing around a bit and this is really a quick way of finding all classes within a directory that implement an interface (and it&#8217;s fast!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">'class '</span> . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> implements</pre></div></div>

<p>And there&#8217;s &#8217;screen&#8217;. Very useful for handling multiple terminal sessions without the risk of losing them all due to a connection hick-up. Lorna has <a href="http://www.lornajane.net/posts/2008/Colourful-Tabs-in-Screen">some config examples</a> on her site.</p>
<p>So not all was new but there were definitely some nice starting points to investigate further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tibobeijen.nl/blog/2009/04/17/linux-fu-phpgg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
