Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A perl script to find large directories in a given folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A perl script to find large directories in a given folder
Authored by: eisbaer on Sep 14, '07 08:55:38AM

Diskinventory was another free GUI app, but it doesn't seem to be updated recently.

for a quick and dirty CLI hack try
du -ak | sort -nr |less
or
du -ak <directorypath> | sort -nr | less

It gives back a sorted list of the largest directories AND files.
It can take quite some time if you scan a lot of directories and files.
One disadvantage may be the readability: du -ak shows the size in Kbyte; changed to du -ah (h=human) it will return MB and Gbytes, but then the sort command will ignore the units and only sort the numbers.
maybe there is a solution out there ...



[ Reply to This | # ]