How to get "du -sk *" to work sensibly
John Summerfield
debian at herakles.homelinux.org
Sun Dec 30 22:14:21 UTC 2007
Arun Vatsil wrote:
> Hello,
>
> but "du -xk --max-depth=1 /" will not include a file say
> "/home/user1/movies/virumandi.avi" in its calculation of the disk usage of /
> . Is that ok?
>
If it's not part of the root fs, that's exactly what the OP wants. Try this:
sudo du -m --max-depth=2 / | sort -n
You will find where the space in your root filesystem's gone. I do this
fairly regularly, whenever I find I'm running out of space. Most
recently it was caused by networkmangler writing some gigglebytes of logs.
--
Cheers
John
-- spambait
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
More information about the fedora-list
mailing list