On Thu, Aug 26, 2004 at 04:06:45PM +0200, Josef Oswald wrote: > Thomas Adam <[EMAIL PROTECTED]> writes: > > > On Thu, Aug 26, 2004 at 02:33:06PM +0200, Josef Oswald wrote: > >> > >> Is there a way to let du -h only print the size of a directory? > > Sorry I was not clear here, I want to check more then _one_ directory, > at once:
[EMAIL PROTECTED] ~]$ sudo du -sh $(pwd) /etc 740M /home/n6tadam 23M /etc If you wanted the total of both those directories together: [EMAIL PROTECTED] ~]$ sudo du -csh $(pwd) /etc 740M /home/n6tadam 23M /etc 763M total > like /home/oswald but du -sh returns a error that /home/oswald/pan/cache > is not readable ( something about input-output error. I'm not going to guess this error. If it is "something like", then my initial guess is that your drive is screwed. > Sure it is :-) But since du returns the above error it does not > finish. du -h /the_directory works but it prints then all files. of > course I could put the output into a file and then go trough that... You could do, but that would be pointless, since du can do it for you. Those I/O errors are not good. What you got in /var/log/messages? Anything to support them? Sorry I can't be any more specific than that, but you haven't supplied the error message. -- Thomas Adam -- Quis custodiet ipsos custodes? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]