Re: du -x
- To: CBROWN@seitz.com (Chris Brown)
- Cc: debian-user@lists.debian.org, surak@imsa.edu, olet@debian.org, JOHN@seitz.com, DEMOND@seitz.com, demond@erols.com, ROSS@seitz.com, vandegrift@erols.com, bruno1@netreach.net
- Subject: Re: du -x
- From: Jiri Baum <jiri@baum.com.au>
- Date: Wed, 14 Apr 1999 00:52:40 +1000 (EST)
- Message-id: <[🔎] E10X4YM-0000i2-00@legend.baum.com.au>
- In-reply-to: <[🔎] 3B1E75719C0@hal.seitz.com> from Chris Brown at "Apr 12, 99 09:14:32 am"
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
--
<jiri@baum.com.au>
We'll know the future has arrived when every mailer transparently
quotes lines that begin with "From ", but no-one remembers why.
Reply to:
- References:
- RE: du -x
- From: "Chris Brown" <CBROWN@seitz.com>