/ Published in: Bash
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
# 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
URL: http://spiralbound.net/2006/11/27/using-sort-to-list-directories-by-size
Comments
 Subscribe to comments
                    Subscribe to comments
                
                