[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation question (correction?) for -ls: 1K vs 1 byte block siz
From: |
James Youngman |
Subject: |
Re: Documentation question (correction?) for -ls: 1K vs 1 byte block size |
Date: |
Mon, 16 May 2011 10:59:14 +0100 |
On Mon, May 16, 2011 at 8:21 AM, Peggy Russell
<address@hidden> wrote:
> Hi,
>
> I came across something in the `find` documentation while trying GNU
> commands with SI Decimal (--SI) and IEC Binary Prefixes (--human-readable).
>
> The ACTION `-ls` says it reports the size in 1K blocks. From reading the
> info page on "Block Size", it looks more like `find -ls` is reporting the
> size in 1 byte blocks. See Command output #1 and #3 verses #6 and #7.
None of those examples show the block counts from ls ("ls -s"). Find
reports both the file size in bytes (column 7) and the blocks used
(column 2). They're reported the same in both ls and find:
~$ ls -dils TRACE.gz ; find TRACE.gz -ls ; stat TRACE.gz
181286 36 -rw-r--r--. 1 james users 29882 Apr 30 2008 TRACE.gz
181286 36 -rw-r--r-- 1 james users 29882 Apr 30 2008 TRACE.gz
File: `TRACE.gz'
Size: 29882 Blocks: 72 IO Block: 4096 regular file
Device: fd16h/64790d Inode: 181286 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1027/ james) Gid: ( 100/ users)
Access: 2010-05-28 10:59:47.000000000 +0100
Modify: 2008-04-30 22:25:39.000000000 +0100
Change: 2009-12-11 19:18:42.000000000 +0000