From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Samuel Subject: Re: Hi, I get the problem that du does report right size on nfs file system. Date: Fri, 30 Apr 2004 13:58:42 -0700 Sender: linux-admin-owner@vger.kernel.org Message-ID: <4092BE02.5020907@bcgreen.com> References: <0HWV007CU25DPD@mail.fudan.edu.cn> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0HWV007CU25DPD@mail.fudan.edu.cn> List-Id: Content-Type: text/plain; charset="us-ascii" To: 0124008@fudan.edu.cn Cc: "linux-admin@vger.kernel.org" A more specific answer is that * doesn't catch the hidden ( .* ) files and directories. If you want to know the sizes of the current directory, and also get a summary of what's in each first-level directory, you acn go: du --max-depth=1 . (the '.' isn't necessary, since that's the default, but I like to know exactly what I'm asking for). Penny wrote: > Hi,all > run `du * -sh` in a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories but `du` only reports about 800M. Btw, the nfs server is running `ms service for unix v3`. > Does anyone meet the same problem here? Thank u in advance. -- Stephen Samuel +1(604)876-0426 samuel@bcgreen.com http://www.bcgreen.com/~samuel/ Powerful committed communication. Transformation touching the jewel within each person and bringing it to light.