troubleshooting Question

How can I get du to only report folders larger than a certain size?

Avatar of StevenHook
StevenHook asked on
LinuxLinux DistributionsIT Administration
8 Comments1 Solution1089 ViewsLast Modified:
Hi,
I want to drill down on space usage on my web server, see which folders are hiding chunkc of junk.
I tried to :
root@GENIUS:~# du --max-depth=10 /var/www/virtual/ > /var/www/virtual/folderlist.csv
but there are just too many folders. the file grows too huge too fast.
Is there a way I can get du to only report if a folder size is more than - lets say - 1GB?
I also thought I should put it in a cron to mail me if ever it finds stuff that's suspicious.
but at the moment I just want it to clean stuff.
Thanks
Steve
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros