[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation question (correction?) for -ls: 1K vs 1 byte block siz
Re: Documentation question (correction?) for -ls: 1K vs 1 byte block size
Mon, 16 May 2011 06:03:14 -0500
KMail/1.12.4 (Linux/22.214.171.124-0.2-desktop; KDE/4.3.5; x86_64; ; )
> 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
. * *
. block count (72*512)/1024 file size in bytes
. There's the 1K from the find -ls doc.
> File: `TRACE.gz'
> Size: 29882 Blocks: 72 IO Block: 4096 regular file
Got it. I think I was too focused on column 7 and the ls --block-size=
option not realizing how it affected disk usage and file size in `ls`.
I have to remember `ls -ls` rather than turning to `du`. ;-|