<?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>The Boschmans Account &#187; bash</title>
	<atom:link href="http://www.boschmans.net/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.boschmans.net</link>
	<description>A collection of interests and happenings...</description>
	<lastBuildDate>Mon, 19 Jul 2010 19:36:37 +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>Disk Usage on a mac : a little bash can take you a long way</title>
		<link>http://www.boschmans.net/2009/01/29/disk-usage-on-a-mac-a-little-bash-can-take-you-a-long-way/</link>
		<comments>http://www.boschmans.net/2009/01/29/disk-usage-on-a-mac-a-little-bash-can-take-you-a-long-way/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 21:50:55 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.boschmans.net/?p=562</guid>
		<description><![CDATA[I&#8217;ve been looking for a free solution to see where all the diskspace on my iMac has recently gone to, and so far I found only a few apps. All are to be purchased, and for what wanted this was overkill. I just wanted a quick check on where the source of biggest disk space [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a free solution to see where all the diskspace on my iMac has recently gone to, and so far I found only a few apps. All are to be purchased, and for what wanted this was overkill. I just wanted a quick check on where the source of biggest disk space consumption lay : was it the music collection ? or the movie collection ?</p>
<p>So here&#8217;s a quick tip on how to solve this for free, no new tools needed, on a Mac or Unix machine : I introduce to you the &#8216;du&#8217; command.</p>
<p>DU stands for Disk Usage, and in combination with some switches, it&#8217;ll let you quickly and (fairly) easely find out where all those mega- and gigabytes have gone to.</p>
<p>Here&#8217;s the line you can use all ready for you &#8211; I executed the command in my user directory :</p>
<p><code>du -d1 -kc | sort -nr</code></p>
<p>Written out it gives the following command : show me the Disk Usage only to the first Directory level (or Depth) and give (pipe) the results to the sort program and show the reverse output from big to small. If you just use du without sorting, you can add the -h flag to it : this will show you the size in Kilobytes, Megabytes or Gigabytes.</p>
<p>Which gives the following output :</p>
<p><code><br />
334265428    total<br />
334265428    .<br />
168926644    ./Movies<br />
46947780    ./Library<br />
38262372    ./Music<br />
21862824    ./Documents<br />
17618688    ./Software<br />
16472220    ./Archive<br />
14429940    ./Pictures<br />
</code></p>
<p>This means that there&#8217;s 161 GB in my movie collection !! Obviously I need to check what&#8217;s going on in there. I can now perform the same command in the movies directory and have the information there to see which directory in there is the largest..</p>
<p>[Update] I just remembered a program I used to use on Windows, and lo and behold, it&#8217;s still active, and is multi-platform as it is written in Java. If you need more than that or want something more graphical or extensive, you can also try <a href="http://www.jgoodies.com/freeware/jdiskreport/">JDISKREPORT</a>, which is  is free to boot!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.boschmans.net/2009/01/29/disk-usage-on-a-mac-a-little-bash-can-take-you-a-long-way/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
