Wit the following command I can find largest directory.
find <directory> -printf '%s %p\n' |sort -nr | head
But is there a way to find largest file within all the subdirectories in directory ?
Specify -type f
for file:
find -type f -printf '%s %p\n' |sort -nr | head
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With