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

Re: Cheap way to track disk usage?



On Tue, Mar 03, 2015 at 10:09:41AM +0200, Johann Spies wrote:
>     
> 
>      I can run du, but that takes ages, and has a performance impact. df
>      only gives the total for the filesystem, of course.
> 
>    Try ncdu.  It also takes some time to finish calculating, but the output
>    is easier to handle and you can drill down to lower directories without
>    losing the other data.

Also, if it's useful to you, you can separate out the gathering and
displaying tasks with ncdu. So you could, for example, run "ionice -c3
ncdu -o ~/ncdu-output" late at night (or when the system is relatively
quiet) and then, in the morning run "ncdu -f ~/ncdu-output" to examine
the file that was produced by the overnight run. 

Attachment: signature.asc
Description: Digital signature


Reply to: