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

John Summerfield debian at herakles.homelinux.org
Sun Dec 30 22:16:34 UTC 2007


Chris G wrote:
> On Sun, Dec 30, 2007 at 03:56:06PM +0530, 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?
> 
> Yes, it *does* include the space consumed by that file.  Don't ask me
> what the logic is here but the --max-depth=x option doesn't mean
man du
"du -s" is like "du  --max-depth=1"

> ignore all space consumed by files below that depth.
> 



-- 

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 users mailing list