Chris Brown: > First off, I'm persuing this because I'd like to make my life a > little easier when reviewing drive usage; I'd like (need) a way to > list summerized directory space used on a single filesystem for one > level of directories (below the current, perhaps).
du -x . | egrep -v '/.*/' Which lists what you want (except the mount points, but you probably have them all empty anyway). The way it does that is by throwing away all lines that have two slashes in them. Another thing that might be useful is du -x . | sort -rn which lists directories according to total size of the tree under them. Thus, if /usr/lib is bigger than /var, it shows up above it. (Send it to a file or through less, otherwise the interesting bits will scroll off...) HTH Jiri -- <[EMAIL PROTECTED]> We'll know the future has arrived when every mailer transparently quotes lines that begin with "From ", but no-one remembers why.