| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | "Ross Boulet" <ross AT rossb DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: du reports half of correct file sizes |
| Date: | Sat, 25 Dec 2004 22:42:08 -0600 |
| Message-ID: | <00ca01c4eb05$4db3f660$6400000a@RossLap> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <41CE0193.C0740AE0@dessent.net> |
| X-IsSubscribed: | yes |
> Ross Boulet wrote: > > > > I saw some old items in the archives (circa 2001) but there > > was not much there about this problem. The most recent > > version of coreutils seems to have broken du. The listing > > below illustrates my point: > > If you have POSIXLY_CORRECT set in your environment then the default > block size for du is 512 bytes, which is what the posix standard > requires. Use -b or -k if you want bytes or kbytes, respectively. > > Brian > > I do not have POSIXLY_CORRECT set. I tried the -b and -k options. The -b option reports correctly, but the -k still seems to report half. $ ls -l a* -rw-r--r-- 1 rossboulet None 2 Dec 25 17:24 a -rw-r--r-- 1 rossboulet None 3740 Dec 25 10:58 aaa $ du -b a* 2 a 3740 aaa $ du -k a* 1 a 2 aaa -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |