<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux &#8211; disk usage (du) human readable AND sorted by size</title>
	<atom:link href="http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/</link>
	<description>Down to Earth Information</description>
	<lastBuildDate>Wed, 01 Feb 2012 05:35:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Linux &#8211; Disk Usage (du) Sorted by Size &#187; Far Away Trains Passing By</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-67001</link>
		<dc:creator>Linux &#8211; Disk Usage (du) Sorted by Size &#187; Far Away Trains Passing By</dc:creator>
		<pubDate>Sat, 28 Jan 2012 20:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-67001</guid>
		<description>[...] Article: http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/    No Comments Posted by  Michael Butler  in technical, Ubuntu                [...]</description>
		<content:encoded><![CDATA[<p>[...] Article: http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/    No Comments Posted by  Michael Butler  in technical, Ubuntu                [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob/Paul</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-59436</link>
		<dc:creator>Bob/Paul</dc:creator>
		<pubDate>Mon, 19 Dec 2011 07:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-59436</guid>
		<description>No. Sometimes -h is better than a static unit for everything. I&#039;d probably use your alternative on Solaris or FreeBSD or somewhere else without a recent GNU sort.</description>
		<content:encoded><![CDATA[<p>No. Sometimes -h is better than a static unit for everything. I&#8217;d probably use your alternative on Solaris or FreeBSD or somewhere else without a recent GNU sort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Jaiswal</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-59399</link>
		<dc:creator>Ashish Jaiswal</dc:creator>
		<pubDate>Mon, 19 Dec 2011 02:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-59399</guid>
		<description>I have these sort of issue at my office

So I normally go for this command.. Normal Scenario is that the var is one is getting filled all the time

cd /var/log/
# du -csh * &#124; grep &quot;M&quot; &#124;sort -rn

This will list all the directory which is higher in space, If you are dealing with very high data, then you can grep it with &quot;G&quot; also.

If you want to which specific file is one, then you can go for this command :

# du -csh */* &#124; grep &quot;M&quot; &#124;sort -rn
Cheers</description>
		<content:encoded><![CDATA[<p>I have these sort of issue at my office</p>
<p>So I normally go for this command.. Normal Scenario is that the var is one is getting filled all the time</p>
<p>cd /var/log/<br />
# du -csh * | grep &#8220;M&#8221; |sort -rn</p>
<p>This will list all the directory which is higher in space, If you are dealing with very high data, then you can grep it with &#8220;G&#8221; also.</p>
<p>If you want to which specific file is one, then you can go for this command :</p>
<p># du -csh */* | grep &#8220;M&#8221; |sort -rn<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: /usr/local/dick</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-59359</link>
		<dc:creator>/usr/local/dick</dc:creator>
		<pubDate>Sun, 18 Dec 2011 21:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-59359</guid>
		<description>Very easy - but not what we want.
Since you did not read the title of this page (located at the top, as usual), I will repeat it here at the bottom:

&quot;Linux – disk usage (du) human readable AND sorted by size&quot;</description>
		<content:encoded><![CDATA[<p>Very easy &#8211; but not what we want.<br />
Since you did not read the title of this page (located at the top, as usual), I will repeat it here at the bottom:</p>
<p>&#8220;Linux – disk usage (du) human readable AND sorted by size&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Astral</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-59158</link>
		<dc:creator>Astral</dc:creator>
		<pubDate>Sat, 17 Dec 2011 14:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-59158</guid>
		<description>Guys c&#039;mon, no way need to go this complex. Simplicity is key.

du -k /home &#124; sort -n

Sorts directory numerical order, using KB (-k). Want order in MB use -m instead.

Now isn&#039;t that much easier?</description>
		<content:encoded><![CDATA[<p>Guys c&#8217;mon, no way need to go this complex. Simplicity is key.</p>
<p>du -k /home | sort -n</p>
<p>Sorts directory numerical order, using KB (-k). Want order in MB use -m instead.</p>
<p>Now isn&#8217;t that much easier?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob/Paul</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-50625</link>
		<dc:creator>Bob/Paul</dc:creator>
		<pubDate>Mon, 17 Oct 2011 17:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-50625</guid>
		<description>du -h * &#124; sort -h

from man sort:
-h, --human-numeric-sort
       compare human readable numbers (e.g., 2K 1G)


$ sort --version
sort (GNU coreutils) 8.5
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Upgrade your sort utility to one that supports the --human-numeric-sort option</description>
		<content:encoded><![CDATA[<p>du -h * | sort -h</p>
<p>from man sort:<br />
-h, &#8211;human-numeric-sort<br />
       compare human readable numbers (e.g., 2K 1G)</p>
<p>$ sort &#8211;version<br />
sort (GNU coreutils) 8.5<br />
Copyright (C) 2010 Free Software Foundation, Inc.<br />
License GPLv3+: GNU GPL version 3 or later .<br />
This is free software: you are free to change and redistribute it.<br />
There is NO WARRANTY, to the extent permitted by law.</p>
<p>Upgrade your sort utility to one that supports the &#8211;human-numeric-sort option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Support</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-41963</link>
		<dc:creator>Support</dc:creator>
		<pubDate>Wed, 10 Aug 2011 20:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-41963</guid>
		<description>Please be sure to replace the &quot;fancy quotes&quot; around the &#039;\n&#039; when you copy and paste this command into terminal or it won&#039;t execute properly. Also, the command lists the results in descending order using the -r flag on sort, a plus in my opinion. 

du -sk * &#124; sort -nr &#124; cut -f2 &#124; xargs -d &#039;\n&#039;du -sh $1</description>
		<content:encoded><![CDATA[<p>Please be sure to replace the &#8220;fancy quotes&#8221; around the &#8216;\n&#8217; when you copy and paste this command into terminal or it won&#8217;t execute properly. Also, the command lists the results in descending order using the -r flag on sort, a plus in my opinion. </p>
<p>du -sk * | sort -nr | cut -f2 | xargs -d &#8216;\n&#8217;du -sh $1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Van Treek</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-22852</link>
		<dc:creator>Andres Van Treek</dc:creator>
		<pubDate>Wed, 16 Feb 2011 21:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-22852</guid>
		<description>@Dan Schaefer

In some systems, we have to replace double quotes by simple quotes
like this

du -sk * &#124; sort -nr &#124; cut -f2 &#124; xargs -d &#039;\n&#039; du -sh $1</description>
		<content:encoded><![CDATA[<p>@Dan Schaefer</p>
<p>In some systems, we have to replace double quotes by simple quotes<br />
like this</p>
<p>du -sk * | sort -nr | cut -f2 | xargs -d &#8216;\n&#8217; du -sh $1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jane W</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-8585</link>
		<dc:creator>Jane W</dc:creator>
		<pubDate>Mon, 20 Sep 2010 06:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-8585</guid>
		<description>Some distributions set up cron jobs that warn you when disk usage exceeds a certain percentage. But when your usage gets flagged as high, it&#039;s deciding what goes and what stays that takes time. Finding the right file or folder to get rid of can be a chore if you have a huge disk. But don&#039;t panic. Among all that clutter, you&#039;ve got some simple tools to bring order to chaos.

The CLI way

The df utility displays the disk space usage on all mounted filesystems. The -T option prints the filesystem type as well. By default, df measures the size in 1K blocks, which could be a little difficult for a desktop user to decipher. Use the -h option to get more understandable output:
Memory

cat /proc/meminfo = memory usage information
free = how much memory is currently unused
Disk space

df = disk usage for all partitions
du -h = disk usage for the current directory and all sub-directories 

&lt;a href=&quot;http://www.thaigreencurry.org&quot; rel=&quot;nofollow&quot;&gt;Thai Green Curry&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Some distributions set up cron jobs that warn you when disk usage exceeds a certain percentage. But when your usage gets flagged as high, it&#8217;s deciding what goes and what stays that takes time. Finding the right file or folder to get rid of can be a chore if you have a huge disk. But don&#8217;t panic. Among all that clutter, you&#8217;ve got some simple tools to bring order to chaos.</p>
<p>The CLI way</p>
<p>The df utility displays the disk space usage on all mounted filesystems. The -T option prints the filesystem type as well. By default, df measures the size in 1K blocks, which could be a little difficult for a desktop user to decipher. Use the -h option to get more understandable output:<br />
Memory</p>
<p>cat /proc/meminfo = memory usage information<br />
free = how much memory is currently unused<br />
Disk space</p>
<p>df = disk usage for all partitions<br />
du -h = disk usage for the current directory and all sub-directories </p>
<p><a href="http://www.thaigreencurry.org" rel="nofollow">Thai Green Curry</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Schaefer</title>
		<link>http://www.earthinfo.org/linux-disk-usage-sorted-by-size-and-human-readable/comment-page-1/#comment-7082</link>
		<dc:creator>Dan Schaefer</dc:creator>
		<pubDate>Wed, 01 Sep 2010 16:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.earthinfo.org/?p=402#comment-7082</guid>
		<description>I modified Dwayne&#039;s code to be space-friendly. Let me know if something doesn&#039;t work.
du -sk * &#124; sort -nr &#124; cut -f2 &#124; xargs -d &quot;\n&quot; du -sh $1</description>
		<content:encoded><![CDATA[<p>I modified Dwayne&#8217;s code to be space-friendly. Let me know if something doesn&#8217;t work.<br />
du -sk * | sort -nr | cut -f2 | xargs -d &#8220;\n&#8221; du -sh $1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

