Recent Changes - Search:
NTLUG

Linux is free.
Life is good.

Linux Training
10am on Meeting Days!

1825 Monetary Lane Suite #104 Carrollton, TX

Do a presentation at NTLUG.

What is the Linux Installation Project?

Real companies using Linux!

Not just for business anymore.

Providing ready to run platforms on Linux

Created by Ed Leach? on May 01, 2010, at 02:00 PM


Here is a perl script that lists the largest files in a directory. I don't remember where I got this. Give it the directory you are interested in as an argument.
-----
use File::Find;
@ARGV = $ENV{ PWD } unless @ARGV;
find ( sub { $size{ $File::Find::name } = -s if -f; }, @ARGV );
@sorted = sort { $size{ $b } <=> $size{ $a } } keys %size;
splice @sorted, 20 if @sorted > 20;

print "\n";
printf " %5dM %s\n", $size / 1024000, $_ for @sorted;
print "\n";
-----

I use Thunderbird for email and was very surprised at how much space my mailboxes take.

Back to Site Blogs

Page last modified on May 01, 2010, at 02:00 PM