Ben Kennedy wrote: > Juri Haberland wrote at 5:09 pm (+0200) on 23 6 2005: > >>Because -b includes --apparent-size. >>Try again with -B1 instead of -b. > > You're right, -B1 gives a count which is visually more consistent with > the "human-readable" total: > > basil ben # du -sB1 ~zygoat/Maildir > 289280 /home/zygoat/Maildir > basil ben # du -sb ~zygoat/Maildir > 103316 /home/zygoat/Maildir > basil ben # du -sh ~zygoat/Maildir > 283K /home/zygoat/Maildir > > However, neither -B1 nor --apparent-size are mentioned in my man page at > all. I had no idea such options existed. Weird. > > Moreover, what is the correct count? 289280 bytes? What is the 103316 > value in the above, then?
As far as I understand the man page, --aparent-size returns the size of the file(s), whereas without --aparent-size the size allocated on disk is returned. See the following example: [EMAIL PROTECTED] juri]$ echo "foo" > bar [EMAIL PROTECTED] juri]$ du -sh bar 4.0K bar [EMAIL PROTECTED] juri]$ du -sB1 bar 4096 bar [EMAIL PROTECTED] juri]$ du -sb bar 4 bar [EMAIL PROTECTED] juri]$ Cheers, Juri ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
