Re: fine-tuning du -h ?
- To: debian-user@lists.debian.org
- Subject: Re: fine-tuning du -h ?
- From: Josef Oswald <oswald@chello.at>
- Date: Thu, 26 Aug 2004 19:41:08 +0200
- Message-id: <[🔎] sweet.nirwana_is87pt5der0r.fsf@home.at>
- In-reply-to: <2xtA4-6lN-23@gated-at.bofh.it> (Thomas Adam's message of "Thu, 26 Aug 2004 16:40:08 +0200")
- References: <2xtqx-6gs-43@gated-at.bofh.it> <2xtqx-6gs-45@gated-at.bofh.it> <2xtqw-6gs-41@gated-at.bofh.it> <2xtA4-6lN-23@gated-at.bofh.it>
Thomas Adam <thomas@edulinux.homeunix.org> writes:
> On Thu, Aug 26, 2004 at 04:06:45PM +0200, Josef Oswald wrote:
>> Thomas Adam <thomas@edulinux.homeunix.org> 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:
>
> [n6tadam@station ~]$ sudo du -sh $(pwd) /etc
> 740M /home/n6tadam
> 23M /etc
>
> If you wanted the total of both those directories together:
>
> [n6tadam@station ~]$ 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.
Well the other poster got me worried :-)
I just run fsck.ext2 on the drive, and the problem is solved now :-)
Thanks for your input :-)
>
> -- Thomas Adam
> --
> Quis custodiet ipsos custodes?
--
LinuxUser aka Josef Oswald linux.os@chello.at
--
registered-linux-user # 134.818 at http://counter.li.org
The box said Windows, NT or better, so I installed Linux :-)
Reply to: