> I've been trying to find a way to get, for each sub-directory of a given
> directory, the total amount of disk-space used up by that sub-directory and
> all its sub-sub-directories.
If you just want subdirectories, try:
du -hs `for x in *; do if [ -d $x ]; then echo $x; fi; done`
If you want subdirectories and files in the current directory, try:
du -hs *
(both of these from the "given directory")
Steven Smith,
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs