Find largest files on Linux system with sorting

December 12, 2008 – 02:06 by Hannes Van de Vel

Finds files larger than 20MB in / and sort from biggest to smallest

find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $5 " " $9 }'  | column -t | sort -nr | less

Post a Comment