Can find
return results based on the size of directories?
Below command is working fine as expected -
find * -type f -size +10M -exec ls -hlSr {} \+
But on applying the same to directories its not returning any results
find * -type d -size +10M -exec ls -hlSr {} \+ //no output
So want to know if some variation of above is possible.
I know du
can be used like this --> du -hs * | sort -h
to achieve desired output but I am more interested in understanding find
limitations and usage scenarios.