Re: How to get "du -sk *" to work sensibly

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

 



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@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- 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:-)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux