commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Very useful for finding the largest files and subdirectories at any given point. Any user can run it from current location just when need to know their largest files and subtdirectories from a certain point down as well.
A simple way using a for loop
Use this as a quick and simple alternative to the slightly verbose "du -s --max-depth=1"
Recursively searches current directory and outputs sorted list of each directory's disk usage to a text file.