6
I want to find all users shown in the /home/
directory whose disk consumption is more than 500MB. The following command works as expected.
cd /home/ && du */ -hs
68K ajay/
902M john/
250M websites/
From the above example, only 902M john/
should be returned.
How can I make the find
command output the same results?
I am looking for a solution that will work with "find" command. – shantanuo – 2011-05-19T12:03:49.003
5Any particular reason why do you want to use find for this task? I would just do **cd /home/ && du / -ms | awk '$1 > 500 { print $0 }'* – vtest – 2011-05-19T14:01:11.687
Can you please post this as an answer? This seems to working. But how do I get human readable disk consumption figure? – shantanuo – 2011-05-23T04:20:32.433