"Doesn't matter how you do, what really matters is the result."

TOP 10 linux folders by size

Posted: December 28th, 2011 | Author: admin | Filed under: All | No Comments »

I never needed it before, but here is a good example of how list the top 10 linux folder by size.

I used it to check why one of my test servers was losing HD space so fast

# du -a /var | sort -n -r | head -n 10

The example will show the top 10 linux folders by size inside /var folder

you can replace /var by / if you want but this will take a long time to be processed.

See ya!



Leave a Reply