How to use du sort by size

With this command you can use du and sort by dimension.

du -sk * | sort -rn | awk '{print $2}' | xargs -ia du -hs "a"

Source from serverfault.com

This page has been readed 2008 times

Leave a Reply

Your email address will not be published. Required fields are marked *