Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'bytes.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'windows': 0.15; 'block.': 0.16; 'emits': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'roy': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header :User-Agent:1': 0.23; 'bytes': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'properties': 0.29; 'characters': 0.30; 'that.': 0.31; 'are.': 0.31; 'writes:': 0.31; 'file': 0.32; 'something': 0.35; 'there': 0.35; 'disk': 0.36; 'displays': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'space': 0.40; 'how': 0.40; 'most': 0.60; 'full': 0.61; 'received:173': 0.61; 'close': 0.67; 'smith': 0.68; 'article': 0.77; 'different.': 0.84; 'received:fios.verizon.net': 0.84; 'subject:Control': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Version Control Software Date: Sun, 16 Jun 2013 13:02:42 -0400 References: <98c13a55-dbf2-46a7-a2aa-8c5f052ff375@googlegroups.com> <2644d0de-9a81-41aa-b27a-cb4535964b58@googlegroups.com> <51BB8338.50006@davea.name> <87zjuqrr8w.fsf@nautilus.nautilus> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <87zjuqrr8w.fsf@nautilus.nautilus> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371402178 news.xs4all.nl 15949 [2001:888:2000:d::a6]:36324 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48463 On 6/16/2013 11:48 AM, Lele Gaifax wrote: > Roy Smith writes: > >> In article , >> Chris Kwpolska Warrick wrote: >> >>> (I=EF=BF=BD=EF=BF=BDm using wc -c to count the bytes in all files the= re are. du is >>> unaccurate with files smaller than 4096 bytes.) >> >> It's not that du is not accurate, it's that it's measuring something >> different. It's measuring how much disk space the file is using. For= >> most files, that's the number of characters in the file rounded up to = a >> full block. > > I think =E2=80=9Cdu -c=E2=80=9D emits a number very close to =E2=80=9Cw= c -c=E2=80=9D. In Windows Explorer, the Properties box displays both the Size and 'Size = on disk', in both (KB or MB) and bytes. The block size for the disk I am = looking at is 4KB, so the Size on disk in KB is a multiple of that. --=20 Terry Jan Reedy