<?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: How to Sort files and folders by size</title>
	<atom:link href="http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: faif</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-118937</link>
		<dc:creator>faif</dc:creator>
		<pubDate>Tue, 03 Jan 2012 09:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-118937</guid>
		<description>Since the previous solution works only on files (ls reports the default block size for directories), here&#039;s a second (slower) solution that works on mixed (directories and files) lists:

du -s ~/* &#124; sort -rn &#124; awk &#039;{print $2}&#039; &#124; xargs du -sh</description>
		<content:encoded><![CDATA[<p>Since the previous solution works only on files (ls reports the default block size for directories), here&#8217;s a second (slower) solution that works on mixed (directories and files) lists:</p>
<p>du -s ~/* | sort -rn | awk &#8216;{print $2}&#8217; | xargs du -sh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faif</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-118870</link>
		<dc:creator>faif</dc:creator>
		<pubDate>Mon, 02 Jan 2012 15:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-118870</guid>
		<description>To get a sorted human-readable output of the file size and name you can use:

ls -lSh *.ogg &#124; awk &#039;{print $6 &quot;\t&quot; $9}&#039;</description>
		<content:encoded><![CDATA[<p>To get a sorted human-readable output of the file size and name you can use:</p>
<p>ls -lSh *.ogg | awk &#8216;{print $6 &#8220;\t&#8221; $9}&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TankerKevo</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-114690</link>
		<dc:creator>TankerKevo</dc:creator>
		<pubDate>Mon, 07 Nov 2011 22:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-114690</guid>
		<description>ls -lrSh

Same deal as Travis but larger files sorted to the bottom of the list.</description>
		<content:encoded><![CDATA[<p>ls -lrSh</p>
<p>Same deal as Travis but larger files sorted to the bottom of the list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis Williams</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-105602</link>
		<dc:creator>Travis Williams</dc:creator>
		<pubDate>Wed, 22 Jun 2011 20:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-105602</guid>
		<description>ls -lSh works for me.</description>
		<content:encoded><![CDATA[<p>ls -lSh works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angelos</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-40847</link>
		<dc:creator>Angelos</dc:creator>
		<pubDate>Sat, 17 Jul 2010 01:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-40847</guid>
		<description>du -h &#124; sort -n #works fine for me</description>
		<content:encoded><![CDATA[<p>du -h | sort -n #works fine for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Just Another Perl Hacker</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-6192</link>
		<dc:creator>Just Another Perl Hacker</dc:creator>
		<pubDate>Wed, 25 Feb 2009 07:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-6192</guid>
		<description>BTW, I forgot... for those of you who prefer gui interaction, there&#039;s always something like &quot;kfind&quot; and &quot;gnome-find&quot; too.  Ah... so many ways to slice the onion!</description>
		<content:encoded><![CDATA[<p>BTW, I forgot&#8230; for those of you who prefer gui interaction, there&#8217;s always something like &#8220;kfind&#8221; and &#8220;gnome-find&#8221; too.  Ah&#8230; so many ways to slice the onion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Just Another Perl Hacker</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-6191</link>
		<dc:creator>Just Another Perl Hacker</dc:creator>
		<pubDate>Wed, 25 Feb 2009 07:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-6191</guid>
		<description>Along the lines of Eli Crffield&#039;s post (but showing everything underneath, instead of just the pwd) how about:

du -ab &#124; sort -n</description>
		<content:encoded><![CDATA[<p>Along the lines of Eli Crffield&#8217;s post (but showing everything underneath, instead of just the pwd) how about:</p>
<p>du -ab | sort -n</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahvargas</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-2034</link>
		<dc:creator>ahvargas</dc:creator>
		<pubDate>Sun, 12 Aug 2007 23:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-2034</guid>
		<description>Also you can try this:
 ls -Slh&#124;cut -c32-36,52-</description>
		<content:encoded><![CDATA[<p>Also you can try this:<br />
 ls -Slh|cut -c32-36,52-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahvargas</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-2033</link>
		<dc:creator>ahvargas</dc:creator>
		<pubDate>Sun, 05 Aug 2007 03:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-2033</guid>
		<description>You can do this to:
for i in `du -s * &#124;sort -n &#124;cut -f2`; do du -h $i; done</description>
		<content:encoded><![CDATA[<p>You can do this to:<br />
for i in `du -s * |sort -n |cut -f2`; do du -h $i; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eli Criffield</title>
		<link>http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html/comment-page-1#comment-2032</link>
		<dc:creator>Eli Criffield</dc:creator>
		<pubDate>Thu, 02 Aug 2007 14:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/how-to-sort-files-and-folders-by-size.html#comment-2032</guid>
		<description>This is i think the first thing someone showed me my first day on the job as a unix admin may years ago.

$ du -s * &#124;sort -n

with gnu du you can add -m to get the output in megs. ( du -sh * is nice too but won&#039;t sort)

$ du -sm * &#124;sort -n

Many Many hours of a Unix admins life is spent doing du -s * &#124;sort -n then cd to the last directory and repeat ....

If your looking for what filled up your filesystem that wasn&#039;t full an hour ago you can also whip together a big find command to find all files over say 100 megs that where modified in the last hour.

Eli Criffield</description>
		<content:encoded><![CDATA[<p>This is i think the first thing someone showed me my first day on the job as a unix admin may years ago.</p>
<p>$ du -s * |sort -n</p>
<p>with gnu du you can add -m to get the output in megs. ( du -sh * is nice too but won&#8217;t sort)</p>
<p>$ du -sm * |sort -n</p>
<p>Many Many hours of a Unix admins life is spent doing du -s * |sort -n then cd to the last directory and repeat &#8230;.</p>
<p>If your looking for what filled up your filesystem that wasn&#8217;t full an hour ago you can also whip together a big find command to find all files over say 100 megs that where modified in the last hour.</p>
<p>Eli Criffield</p>
]]></content:encoded>
	</item>
</channel>
</rss>

