<?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>Geekality &#187; Command line</title>
	<atom:link href="http://www.geekality.net/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:53:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to change or remove file extensions in Windows</title>
		<link>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/</link>
		<comments>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 18:14:05 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[File extensions]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1887</guid>
		<description><![CDATA[Say you have a bunch of files and you want to quickly change or remove the file extension of all of them. Turns out that&#8217;s very simple to do with the command-line in Windows. I had no idea&#8230; Change ren &#8230; <a href="http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Say you have a bunch of files and you want to quickly change or remove the file extension of all of them. Turns out that&#8217;s very simple to do with the command-line in Windows. I had no idea&#8230;</p>
<h2>Change</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ren <span style="color: #000000; font-weight: bold;">*</span>.old <span style="color: #000000; font-weight: bold;">*</span>.new</div></div>
<p>Will change all files with &#8216;old&#8217; file extension to have the &#8216;new&#8217; file extension.</p>
<h2>Remove</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ren <span style="color: #000000; font-weight: bold;">*</span>.old <span style="color: #000000; font-weight: bold;">*</span>.</div></div>
<p>Will remove the &#8216;old&#8217; file extension.</p>
<p>Simple!</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1887&amp;md5=81cb44554d778fd2cebd830b4320d4e4" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2011/11/29/how-to-change-or-remove-file-extensions-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix: Recursive search for text in files</title>
		<link>http://www.geekality.net/2011/04/12/unix-recursive-search-for-text-in-files/</link>
		<comments>http://www.geekality.net/2011/04/12/unix-recursive-search-for-text-in-files/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 18:51:58 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Grep]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1547</guid>
		<description><![CDATA[Keep forgetting how to do this, so here it is. How to do a quick and simple, recursive search for text using grep. Hint: It&#8217;s very simple. $ grep -rl &#34;some text&#34; . That&#8217;s all there is to it! grep &#8230; <a href="http://www.geekality.net/2011/04/12/unix-recursive-search-for-text-in-files/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1549" class="wp-caption alignright" style="width: 310px"><img src="http://www.geekality.net/wp-content/uploads/2011/04/Sunsets-and-Silhouttes-300x168.jpg" alt="Silhouette of a person with binoculars against a sunset" title="Sunsets and Silhouttes" width="300" height="168" class="size-medium wp-image-1549" /><p class="wp-caption-text">rgbstock.com</p></div>Keep forgetting how to do this, so here it is. How to do a quick and simple, recursive search for text using <code class="codecolorer text default"><span class="text">grep</span></code>. Hint: It&#8217;s very simple.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-rl</span> <span style="color: #ff0000;">&quot;some text&quot;</span> .</div></div>
<p>That&#8217;s all there is to it! <code class="codecolorer text default"><span class="text">grep</span></code> is the command, <code class="codecolorer text default"><span class="text">r</span></code> makes the search recursive (i.e. in the target folder and all its sub-folders), <code class="codecolorer text default"><span class="text">l</span></code> means it will list the name of all the files where it finds the text, <code class="codecolorer text default"><span class="text">&quot;some text&quot;</span></code> is the string to search for, and finally, the dot at the end means to start the search in the current directory. And just to clarify, this searches for text <em>inside</em> of files, in the content of the files; not the filenames.</p>
<p>There, now I know where to find it when I forget it next time. And perhaps I have helped someone else too <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<p>Good night!</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1547&amp;md5=11e1910d2f571641376ff58c5b44a318" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2011/04/12/unix-recursive-search-for-text-in-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to make the Bash command prompt more useful</title>
		<link>http://www.geekality.net/2011/02/17/how-to-make-the-bash-command-prompt-more-useful/</link>
		<comments>http://www.geekality.net/2011/02/17/how-to-make-the-bash-command-prompt-more-useful/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 19:21:56 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1483</guid>
		<description><![CDATA[Was on a Linux box today and I found the command prompt rather useless. It looked like this: -bash-3.2$ I know I&#8217;m using bash, and I don&#8217;t really care about the version. Or that I&#8217;m using bash actually&#8230; But anyways, &#8230; <a href="http://www.geekality.net/2011/02/17/how-to-make-the-bash-command-prompt-more-useful/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Was on a Linux box today and I found the command prompt rather useless. It looked like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-bash-3.2$</div></div>
<p>I know I&#8217;m using bash, and I don&#8217;t really care about the version. Or that I&#8217;m using bash actually&#8230; But anyways, to make it more useful you can run this:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;\u@\h:\w$ &quot;</span></div></div>
<p>You will then get a prompt which contains your username, hostname and current working directory. <em>Much</em> more useful in my opinion. If you have a different opinion, please share <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<p>You can find more stuff to put in your prompt by reading the prompting section of the <a href="http://linux.die.net/man/1/bash">bash man page</a>.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=1483&amp;md5=de5b63b047f95d04844d44a1c8745ac5" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2011/02/17/how-to-make-the-bash-command-prompt-more-useful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to open an elevated Command Prompt window</title>
		<link>http://www.geekality.net/2010/08/16/how-to-open-an-elevated-command-prompt-window/</link>
		<comments>http://www.geekality.net/2010/08/16/how-to-open-an-elevated-command-prompt-window/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 19:16:48 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1139</guid>
		<description><![CDATA[This is just a little step-by-step guide for how you can open up an open an elevated Command Prompt under Windows 7 (and Windows Vista I think). That is, a Command Prompt with Administrator privileges which allows you to do &#8230; <a href="http://www.geekality.net/2010/08/16/how-to-open-an-elevated-command-prompt-window/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is just a little step-by-step guide for how you can open up an open an elevated Command Prompt under Windows 7 (and Windows Vista I think). That is, a Command Prompt with Administrator privileges which allows you to do more stuff than you usually can.</p>
<p><span id="more-1139"></span></p>
<h2>Slow way</h2>
<ol>
<li>Open your <strong>Start Menu</strong></li>
<li>Go to <strong>All Programs</strong></li>
<li>Go to <strong>Accessories</strong></li>
<li>Right-click <strong>Command Prompt</strong></li>
<li>Select <strong>Run as administrator</strong></li>
<li>Answer <strong>Yes</strong> to the following User Account Control question</li>
</ol>
<h2>Fast way</h2>
<ol>
<li>Open your <strong>Start Menu</strong></li>
<li>Type <strong>cmd</strong> in the search field, and you should have an item called <strong>cmd.exe</strong> selected</li>
<li>Press <strong>Ctrl + Shift + Enter</strong></li>
<li>Answer <strong>Yes</strong> to the following User Account Control question</li>
</ol>
<p>After following either of those, you should now have an elevated Command Prompt window running in front of you.</p>
<p>And now I have a simple guide I can link to if I mention elevated Command Prompt windows on my blog <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':P' class='wp-smiley smiley-13' /> </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/08/16/how-to-open-an-elevated-command-prompt-window/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to enable verbose booting in Mac OS X</title>
		<link>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/</link>
		<comments>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/#comments</comments>
		<pubDate>Wed, 12 May 2010 07:41:52 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=979</guid>
		<description><![CDATA[I&#8217;m a curious guy, so I wanted to see if there was anything interesting happening behind the Apple logo when the Mac I use at work boots up. Turned out it was quite simple to enable and disable this feature. &#8230; <a href="http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a curious guy, so I wanted to see if there was anything interesting happening behind the Apple logo when the Mac I use at work boots up.</p>
<p>Turned out it was quite simple to enable and disable this feature. To enable it, just open up a Terminal and run the following command:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=<span style="color: #ff0000;">&quot;-v&quot;</span></div></div>
<p>When you reboot the next time, you will see all the fun stuff happening during the boot up. If you get tired of it, you can disable it again by running:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=</div></div>
<p>That&#8217;s it!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disappearing color labels in Mac OS X</title>
		<link>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/</link>
		<comments>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 11:45:43 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=937</guid>
		<description><![CDATA[Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. &#8230; <a href="http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. You simply right-click them in the Finder and select a color label.</p>
<p>This can be quite a handy feature, but not so much when it doesn&#8217;t work. My problem was that I would give a bunch of files color labels, but then shortly after that the label simply disappeared. I could look at the file in the Finder, it had its label, I&#8217;d click on it, and the label disappeared. In fact the color label was already gone, it was just that the Finder is kind of slow to update itself&#8230; O&#8217; how I miss F5 sometimes&#8230;</p>
<p><span id="more-937"></span></p>
<p>Anyways, you can check if a file <em>really</em> has a label or not by opening up a Terminal and using the following command on the file in question:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>mdls <span style="color: #660033;">-name</span> kMDItemFSLabel somefile.ext</div></div>
<p>It will give you back a number and if the number is greater than zero it means the file has a label.</p>
<h2>But what to do about it?</h2>
<p>After some digging I found that it might have to do with some <a href="http://en.wikipedia.org/wiki/Xsan">XSan</a> issues or corrupt meta files. Mac OS X spreads these meta-files around wherever it goes and apparently they go corrupt from time to time. A quick and simple way to fix this issue is just to clear them all out and let Finder have fun recreating them. As these files are hidden in the Finder, and Mac OS X is so kind to not give us an easy way of showing hidden files, I once again opened up a Terminal. I then went to the directory with the broken meta-files and ran these two commands:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">rm</span> ._<span style="color: #000000; font-weight: bold;">*</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> .DS_Store</div></div>
<p>All the labels should then be gone in Finder if you check the folder again. Now re-label them and they should hopefully stay labeled as well. Hope this can help someone else <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<h2>Doing it recursively</h2>
<p>The following command will do it for the current working directory and all its sub-directories:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> .DS_Store <span style="color: #660033;">-delete</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;._*&quot;</span> <span style="color: #660033;">-delete</span></div></div>
<h2>Files with no extension</h2>
<p>If you have filenames without an extension, like for example <var>Some video</var> instead of <var>Some video.mov</var>, Finder won&#8217;t know how to open these files anymore after you remove the meta-files. If that should happen I recommend that you add the right extension on the filename and you will have no more problems with that. If you prefer to have it without extension you can also select and right-click the files, select <var>Get Info</var>, and then under the <var>Open with</var> category select the application you want the file to be opened with. But seriously, just giving the files proper extensions to begin with is a lot easier to work with&#8230; at least I think so&#8230;</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Helpful Unix and Mac commands</title>
		<link>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/</link>
		<comments>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 16:30:35 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=77</guid>
		<description><![CDATA[I am for the most part a Windows user. I was kind of moving towards Linux, Ubuntu in particular, but that ship pretty much sailed when I got my hands on Windows 7. Awesome, awesome operating system. But, I still &#8230; <a href="http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am for the most part a Windows user. I was <em>kind</em> of moving towards Linux, Ubuntu in particular, but that ship pretty much sailed when I got my hands on Windows 7. Awesome, awesome operating system. But, I still have to use some Unix and Mac systems once in a while. And then there are certain commands that I often use, but always forget since it usually goes a bit of time between times I do it. So, what follows is basically just a list of commands that I keep forgetting, but keep having to look up again.</p>
<p><span id="more-77"></span></p>
<h2>Remove .DS_Store files</h2>
<p>Removes all those <del datetime="2010-03-09T15:21:10+00:00">stupid</del>annoying DS_Store files that Mac litters around wherever it goes. Works in the current directory and downwards.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>DS_Store <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</div></div>
<h2>Recursivly download a whole website</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-T</span> <span style="color: #000000;">5</span> <span style="color: #660033;">-t</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-m</span> <span style="color: #660033;">-np</span> <span style="color: #660033;">-w</span> <span style="color: #000000;">5</span> <span style="color: #660033;">--random-wait</span> <span style="color: #660033;">-E</span> <span style="color: #660033;">-k</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-P</span> output<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> http:<span style="color: #000000; font-weight: bold;">//</span>website</div></div>
<h2>Compress and decompress files</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Compress</span><br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> czvf archive.tar.gz filedir filedir<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> cjvf archive.tar.bz2 filedir filedir<br />
<br />
<span style="color: #666666; font-style: italic;"># Decompress</span><br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf archive.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> xjvf archive.tar.bz2</div></div>
<h2>Find open files</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lsof filename</div></div>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=77&amp;md5=1f586797c3702c427a00230617176016" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

