List and sort by sizes all directories and files (in human readable format)

This command takes more time to process than the classic du . | sort -n , but in the result sizes are printed in human redable format:

[pene@donunix] du . | sort -n | awk '{print $2}' | xargs du -hs

No comments: