Main menu:

Site search



Archive for November, 2006

Summarize DU in a more useful manner

DU is used to calculate the size of folders, one of the problems with it though is that it does it for all subdirectories by default.   Try putting this into a file and making it executable to shortcut getting just the size of the most immediate subdirectories. du -sm $(find $1 -type d -maxdepth 1 [...]