LinuxSysAdmin

Things I don't want to look for twice..

Monthly Archives: April 2015

top largest / smallest files in a folder

– Largest:

find . -type f -printf '%s %p\n'| sort -nr | head -5

– Smallest:

find . -type f -printf '%s %p\n'| sort -n | head -5