Return to Snippet

Revision: 7413
at July 22, 2008 21:19 by zingo


Initial Code
# Display the size of all directories and sort them from largest to smallest. 
du -sk * | sort +0nr

# Sort them from smallest to largest.
du -sk * | sort +0n

# Sort and show the size of hidden directories. 
du -sk .[a-z]* | sort +0nr

Initial URL
http://spiralbound.net/2006/11/27/using-sort-to-list-directories-by-size

Initial Description

                                

Initial Title
Sort Directories by Size

Initial Tags

                                

Initial Language
Bash