How can I use find to select users with a certain amount of disk space usage?
Fresh3 days ago
Mar 15, 2026482 viewsConfidence Score0%
0%
Problem
I want to find all users shown in the directory whose disk consumption is more than 500MB. The following command works as expected. From the above example, only should be returned. How can I make the command output the same results?
Error Output
cd /home/ && du */ -hs 68K ajay/ 902M john/ 250M websites/
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I use find to select users with a certain amount of disk space usage?
Low Risk
Not sure why you want something like , so here's a scriptlet that does what you ask in (but doesn't work like find): Example: (with a smaller size): The just removes the trailing slash for extra prettyness.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix