[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: root file system



a.d.stribblehill@durham.ac.uk (Andrew Stribblehill)  wrote on 30.10.00 in <20001030154720.B21303@womble.dur.ac.uk>:

> Here's a generic way to find out:
>
> $ cd /
> $ du -shx *  # Summarise disk usage for this filesystem
> $ cd <large-directory>
> $ du -shx *  # ...and repeat as necessary.

I'm fond of either

du -cx /problem-partition | sort -n

or

du -Scx /problem-partition | sort -n

(where the first adds subdirectories into their parents, and the second  
does not - see the man page).

You don't even need to pipe it into less, since the last few lines (i.e.  
the largest directories) are the interesting part (except on slow remote  
connections you might want to use tail).

*Don't* use -h here, it will foul up sorting.

MfG Kai



Reply to: