[PLUG] Disk space question using LVM

Stafford A. Rau srau at rauhaus.org
Thu Sep 16 10:57:02 UTC 2004


* David Fetter <david.fetter at fetterconsulting.com> [040916 10:49]:
> Try doing `du -sk /` or `du -sk /*` to see how much space each
> individual directory is taking.  It is displayed in kylobytes, hence the
> -k option.

Even better, do this:

du -akl / | sort -n

That will show the size in kilobytes of every file and directory on /
but limited to only the root file system. Sort it numerically to see the
large users of space at the end.

May take a while to run, depending on the size of the filesystem...

--Stafford





More information about the PLUG mailing list