<?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>blog.watashii &#187; du</title>
	<atom:link href="http://blog.watashii.com/tag/du/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.watashii.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 02:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>UNIX file size listing &#8211; du command</title>
		<link>http://blog.watashii.com/2008/08/unix-file-size-listing-du-command/</link>
		<comments>http://blog.watashii.com/2008/08/unix-file-size-listing-du-command/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 06:03:16 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[directory size]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[file size]]></category>
		<category><![CDATA[size listing]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=42</guid>
		<description><![CDATA[Question: How can I list the true file and directory sizes on UNIX? boadmin@nshost1&#62;$ ls -la total 12130522 drwxr-xr-x 5 boadmin boadmin 512 Aug 4 14:30 . drwxr-xr-x 31 boadmin boadmin 1024 Aug 1 22:00 .. drwxr-xr-x 5 boadmin boadmin 512 May 7 05:48 DISK_1 drwxr-xr-x 3 boadmin boadmin 512 May 7 05:47 DISK_2 drwxr-xr-x [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/09/unix-ps-command-long-process-listing/' rel='bookmark' title='Permanent Link: Unix ps command &#8211; Long Process Listing'>Unix ps command &#8211; Long Process Listing</a></li>
<li><a href='http://blog.watashii.com/2009/10/unix-ls-command-with-colors-without-the-color-option/' rel='bookmark' title='Permanent Link: Unix LS Command With Colors&#8230; Without the &#8212;color Option'>Unix LS Command With Colors&#8230; Without the &#8212;color Option</a></li>
<li><a href='http://blog.watashii.com/2010/06/unix-shell-check-if-directory-is-empty/' rel='bookmark' title='Permanent Link: Unix Shell &#8211; Check If Directory Is Empty'>Unix Shell &#8211; Check If Directory Is Empty</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.watashii.com/wp-content/uploads/2008/08/unixducommand.png"><img class="alignnone size-full wp-image-43" title="Unix du command" src="http://blog.watashii.com/wp-content/uploads/2008/08/unixducommand.png" alt="" width="527" height="185" /></a></p>
<p><strong>Question: How can I list the true file and directory sizes on UNIX?</strong></p>
<pre><code>boadmin@nshost1&gt;$ ls -la
total 12130522
drwxr-xr-x   5 boadmin  boadmin      512 Aug  4 14:30 .
drwxr-xr-x  31 boadmin  boadmin     1024 Aug  1 22:00 ..
drwxr-xr-x   5 boadmin  boadmin      512 May  7 05:48 DISK_1
drwxr-xr-x   3 boadmin  boadmin      512 May  7 05:47 DISK_2
drwxr-xr-x   3 boadmin  boadmin      512 May 31 14:02 sp3
-rw-r--r--   1 boadmin  boadmin  6207767040 Aug  4 14:33 sp3.tar</code></pre>
<p><span id="more-42"></span></p>
<p><strong>The short answer, use the following command: </strong><strong>du -sh *</strong></p>
<pre><code>boadmin@nshost1&gt;$ du -sh *
634M   DISK_1
152M   DISK_2
5.8G   sp3
5.8G   sp3.tar</code></pre>
<pre><code><strong>du</strong> - is the disk usage utility on UNIX
<strong> s</strong> - is to sum the files within the directory
<strong> h</strong> - is the filesize in human readable format, megs, gigs, etc
<strong> *</strong> - to group it on all elements in the current directory, or specify
any path here, or leave empty to summarize to one group</code></pre>
<p><strong>The long answer, use the following command and start reading: </strong><strong>man du</strong></p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/09/unix-ps-command-long-process-listing/' rel='bookmark' title='Permanent Link: Unix ps command &#8211; Long Process Listing'>Unix ps command &#8211; Long Process Listing</a></li>
<li><a href='http://blog.watashii.com/2009/10/unix-ls-command-with-colors-without-the-color-option/' rel='bookmark' title='Permanent Link: Unix LS Command With Colors&#8230; Without the &#8212;color Option'>Unix LS Command With Colors&#8230; Without the &#8212;color Option</a></li>
<li><a href='http://blog.watashii.com/2010/06/unix-shell-check-if-directory-is-empty/' rel='bookmark' title='Permanent Link: Unix Shell &#8211; Check If Directory Is Empty'>Unix Shell &#8211; Check If Directory Is Empty</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/08/unix-file-size-listing-du-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

