<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Magp.ie &#187; terminal</title>
	<atom:link href="http://magp.ie/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://magp.ie</link>
	<description>A nest for the random, shiny, online tidbits I stumble across...</description>
	<lastBuildDate>Wed, 16 May 2012 09:40:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='magp.ie' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/061e340c5da13b5a41ae8016bee03aa8?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Magp.ie &#187; terminal</title>
		<link>http://magp.ie</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://magp.ie/osd.xml" title="Magp.ie" />
	<atom:link rel='hub' href='http://magp.ie/?pushpress=hub'/>
		<item>
		<title>How to ... Make Subversion ignore files and folders</title>
		<link>http://magp.ie/2012/03/27/svn-ignore-exclude-files-directories/</link>
		<comments>http://magp.ie/2012/03/27/svn-ignore-exclude-files-directories/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 15:00:54 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ignore files directories]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://magp.ie/2012/03/27/720/</guid>
		<description><![CDATA[Reblogged from Hungry for Knowledge: Excluding files from your repository Sometimes you may have types of files or folders in your source code tree that you do not want to include in your source code repository. Everyne developing with Visual &#8230; <a href="http://magp.ie/2012/03/27/svn-ignore-exclude-files-directories/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=720&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="reblog-post"><p class="reblog-from"><img alt='' src='http://1.gravatar.com/avatar/97a1a6d85466d4f9c0c7fe6baa93478b?s=25&amp;d=monsterid&amp;r=PG' class='avatar avatar-25' height='25' width='25' /> <a href="http://sdesmedt.wordpress.com/2006/12/10/how-to-make-subversion-ignore-files-and-folders/">Reblogged from Hungry for Knowledge:</a></p><div class="wpcom-enhanced-excerpt">
<p><strong>Excluding files from your repository</strong>
Sometimes you may have types of files or folders in your source code tree that you do not want to include in your source code repository. Everyne developing with Visual Studio will immediately know what I mean: VS automatically makes bin and obj subfolders for your project folder in which it puts the buildresults and also creates *.suo files with your personal settings for a solution.</p>
 <p class="read-more"><a href="http://sdesmedt.wordpress.com/2006/12/10/how-to-make-subversion-ignore-files-and-folders/" target="_self"><span>Read more&hellip;</span> 494 more words</a></p></div></div><div class="reblogger-note"><img alt='' src='http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=25&amp;d=monsterid&amp;r=PG' class='avatar avatar-25' height='25' width='25' /><div class='reblogger-note-content'>
Here is a good guide on how to exclude files and directories from SVN.
</div></div>]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2012/03/27/svn-ignore-exclude-files-directories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Uninstall and Remove Xcode Completely</title>
		<link>http://magp.ie/2011/12/12/uninstall-and-remove-xcode-completely/</link>
		<comments>http://magp.ie/2011/12/12/uninstall-and-remove-xcode-completely/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 17:12:53 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[max osx]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[uninstall]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=688</guid>
		<description><![CDATA[If you are in a position where you want to remove the colossus that is Xcode, here is the terminal command to use. sudo /Developer/Library/uninstall-devtools –mode=all In my case, I was using migration assistant to migrate my applications and user &#8230; <a href="http://magp.ie/2011/12/12/uninstall-and-remove-xcode-completely/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=688&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are in a position where you want to remove the colossus that is Xcode, here is the terminal command to use.</p>
<p><code>sudo /Developer/Library/uninstall-devtools –mode=all</code></p>
<p>In my case, I was using <a href="http://support.apple.com/kb/HT4413" title="Super Time Saver!" target="_blank">migration assistant</a> to migrate my applications and user account to a new laptop. My older laptop had an older version of Xcode that I didn&#8217;t want included in the migration and as it is so big, I didn&#8217;t want to take the chance.</p>
<p><a href="http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/" title="Thanks!" target="_blank">Kudos to Pushkararora.com</a></p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/bash/'>bash</a>, <a href='http://magp.ie/tag/max-osx/'>max osx</a>, <a href='http://magp.ie/tag/remove/'>remove</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a>, <a href='http://magp.ie/tag/uninstall/'>uninstall</a>, <a href='http://magp.ie/tag/xcode/'>xcode</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/688/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/688/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/688/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=688&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2011/12/12/uninstall-and-remove-xcode-completely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Find process using port number in Bash</title>
		<link>http://magp.ie/2011/04/19/find-process-using-port-number-in-bash/</link>
		<comments>http://magp.ie/2011/04/19/find-process-using-port-number-in-bash/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 08:37:03 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[lsof command]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=575</guid>
		<description><![CDATA[Something that has bugged me recently is that when I go to proxy on a particular port, the port is already in use and I get the following error. bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 8090 &#8230; <a href="http://magp.ie/2011/04/19/find-process-using-port-number-in-bash/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=575&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Something that has bugged me recently is that when I go to proxy on a particular port, the port is already in use and I get the following error.<br />
<code><br />
bind: Address already in use<br />
channel_setup_fwd_listener: cannot listen to port: 8090<br />
Could not request local forwarding.<br />
</code><br />
<span id="more-575"></span><br />
So I had a quick look to find out how to locate the process hogging the port. All I need to do is use the <a href="http://www.catonmat.net/blog/unix-utilities-lsof/" target="_blank">lsof command</a>.</p>
<p><code>lsof -i:8090</code></p>
<p>This command returns a list of open processes on this port.</p>
<p>Something like&#8230;<br />
<code><br />
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br />
ssh 75782 eoin 5u IPv6 0x01c1c234 0t0 TCP localhost:8090 (LISTEN)<br />
</code></p>
<p>To free the port, kill the process using it&#8230;<br />
<code>kill 75782</code></p>
<p>&nbsp;</p>
<p>[<strong>Update</strong>: Simpler solution found]</p>
<p>Easier to kill all ssh processes and restart them (if you use <a title="Terminal Aliases" href="http://magp.ie/2010/02/11/terminal-aliases/" target="_blank">terminal aliases</a>!), since in my case it is always an ssh process that is hogging the port.<br />
<code></code></p>
<p><code>killall ssh</code></p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/bash/'>bash</a>, <a href='http://magp.ie/tag/killall/'>killall</a>, <a href='http://magp.ie/tag/lsof-command/'>lsof command</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a>, <a href='http://magp.ie/tag/unix/'>Unix</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=575&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2011/04/19/find-process-using-port-number-in-bash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging PHP by monitoring errors in terminal</title>
		<link>http://magp.ie/2011/03/10/debugging-php-by-monitoring-errors-in-terminal/</link>
		<comments>http://magp.ie/2011/03/10/debugging-php-by-monitoring-errors-in-terminal/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 20:27:00 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[debugging techniques]]></category>
		<category><![CDATA[debug_backtrace]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=531</guid>
		<description><![CDATA[This is a super simple command but there is something about the following sequence of characters that I simply cannot retain in my brain. tail -f /tmp/php-errors This is a handy command to debug your PHP on your server where &#8230; <a href="http://magp.ie/2011/03/10/debugging-php-by-monitoring-errors-in-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=531&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a super simple command but there is something about the following sequence of characters that I simply cannot retain in my brain.<br />
<span id="more-531"></span><br />
<code>tail -f /tmp/php-errors</code></p>
<p>This is a handy command to debug your PHP on your server where you may have errors hidden. </p>
<ul>
<li>The <a href="http://ss64.com/bash/tail.html">tail</a> command shows the end of a file.</li>
<li>The -f flag tells it to keep the file open, while you debug your code</li>
<li>The /tmp/php-error is ( I assume! ) a temporary error log file that stores PHP errors on the server.</li>
<p>.</ul>
<p><strong>Update:</strong></p>
<p>If you use <code>error_log(print_r(debug_backtrace(), true ))</code> with this command, you can monitor the call stack in real time. Super useful when debugging!</p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/bash/'>bash</a>, <a href='http://magp.ie/tag/command/'>command</a>, <a href='http://magp.ie/tag/debugging-techniques/'>debugging techniques</a>, <a href='http://magp.ie/tag/debug_backtrace/'>debug_backtrace</a>, <a href='http://magp.ie/tag/error_log/'>error_log</a>, <a href='http://magp.ie/tag/php/'>php</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=531&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2011/03/10/debugging-php-by-monitoring-errors-in-terminal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Command Line Shortcuts</title>
		<link>http://magp.ie/2011/01/27/command-line-shortcuts/</link>
		<comments>http://magp.ie/2011/01/27/command-line-shortcuts/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 09:44:04 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[lifehacker]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=493</guid>
		<description><![CDATA[Excellent post from one of my favourite sites &#8211; Become a command line ninja with these time saving shortcuts Filed under: Shortcuts Tagged: commands, lifehacker, shortcuts, terminal<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=493&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Excellent post from one of my favourite sites &#8211; <a href="http://lifehacker.com/5743814/become-a-command-line-ninja-with-these-time+saving-shortcuts">Become a command line ninja with these time saving shortcuts</a></p>
<br />Filed under: <a href='http://magp.ie/category/shortcuts/'>Shortcuts</a> Tagged: <a href='http://magp.ie/tag/commands/'>commands</a>, <a href='http://magp.ie/tag/lifehacker/'>lifehacker</a>, <a href='http://magp.ie/tag/shortcuts-2/'>shortcuts</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/493/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/493/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/493/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=493&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2011/01/27/command-line-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Terminal Screen Command</title>
		<link>http://magp.ie/2010/10/22/using-terminal-screen-command/</link>
		<comments>http://magp.ie/2010/10/22/using-terminal-screen-command/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 21:09:43 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=284</guid>
		<description><![CDATA[This is a simple one. For some reason, every time I use the screen command in terminal, I forget the commands. There are probably lots of cool reasons to use screen but I use it to run a script over &#8230; <a href="http://magp.ie/2010/10/22/using-terminal-screen-command/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=284&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a simple one. For some reason, every time I use the <a href="http://ss64.com/bash/screen.html">screen command</a> in terminal, I forget the commands.</p>
<p>There are probably lots of cool reasons to use screen but I use it to run a script over a longish period. The advantage of screen is I can start the script in the screen instance and detach from it. I can close my laptop and return later to my terminal, open my screen and check the progress of the script. Also, you can run multiple instances of a script as each screen has its own process.</p>
<p>So the basic commands I use and tend to forget are&#8230;<span id="more-284"></span></p>
<p>Create a screen with a label so you know what it&#8217;s for: <code>screen -S 'run-long-script1'</code></p>
<p>Detach from the screen: <code>Ctrl + a + d</code></p>
<p>Kill the screen: <code>exit</code></p>
<p>Check what screens you have created: <code>screen -ls</code></p>
<p>Open a screen that you have already created: <code>screen -r 'run-long-script1'</code></p>
<p>Access the extensive screen manual: <code>man screen</code></p>
<p>Found this guide helpful from <a href="http://www.thegeekstuff.com/2010/07/screen-command-examples/">thegeekstuff</a>.</p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/bash/'>bash</a>, <a href='http://magp.ie/tag/commands/'>commands</a>, <a href='http://magp.ie/tag/screen/'>screen</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=284&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2010/10/22/using-terminal-screen-command/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>Terminal Aliases</title>
		<link>http://magp.ie/2010/02/11/terminal-aliases/</link>
		<comments>http://magp.ie/2010/02/11/terminal-aliases/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 12:28:16 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[aliases]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=25</guid>
		<description><![CDATA[Sick of typing out long commands, bad at typing, forget commands from time to time or all 3 like me&#8230; then aliases are here to help. Basically, you can use a handy short memorable alias for a long and possible &#8230; <a href="http://magp.ie/2010/02/11/terminal-aliases/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=25&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sick of typing out long commands, bad at typing, forget commands from time to time or all 3 like me&#8230; then aliases are here to help.</p>
<p>Basically, you can use a handy short memorable alias for a long and possible complicated one in terminal by doing the following.<br />
<span id="more-25"></span><br />
Open terminal, go to root ( cd ~/ ) and see if a file under the name .bash_login exists&#8230; if not create it.</p>
<p>Open this file in vim, enter your aliases like so&#8230;<br />
<strong>alias dev1=&#8217;ssh username@serverhostname.com&#8217;</strong><br />
<strong>alias dev2=&#8217;ssh username@anotherserverhostname.com&#8217;</strong></p>
<p>So now each time I enter dev1 into the terminal, I will be ssh&#8217;ing into my server, or dev2 to ssh into another one without having to recall the hostname and such&#8230; sweet.</p>
<p>You can add as many as you like for any command.</p>
<p><strong>HANDY TIP:</strong> Enter the alias !=history and now you each time you type ! plus some text, the terminal will  figure out which command to call based on your terminal history and the text you entered.</p>
<p><strong>HANDY TIP #2:</strong> Use CTRL+R to search through any of your previous commands, you can insert any part of the command&#8230; super!<br />
<i>Thanks Donncha</i></p>
<br />Filed under: <a href='http://magp.ie/category/shortcuts/'>Shortcuts</a> Tagged: <a href='http://magp.ie/tag/aliases/'>aliases</a>, <a href='http://magp.ie/tag/ssh/'>SSH</a>, <a href='http://magp.ie/tag/terminal/'>terminal</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=25&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2010/02/11/terminal-aliases/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
	</channel>
</rss>
