Re: Re: differnt results between df and ls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 3/29/07, Akemi Yagi <amyagi@xxxxxxxxx> wrote:
On Thu, 29 Mar 2007 11:07:36 -0700, Mark Hull-Richter wrote:

> On 3/29/07, Tom Brown <tom@xxxxxxxx> wrote:
>>
>> this is more than likely a general linux question but on a CentOS4 box
>> whats going on here?
>>
>> # ls -al foo.txt
>> -r--r--r--  1 xxx xxx 1373149856 Mar 28 04:34 foo.txt
>>
>> # du -sh foo.txt
>> 808M    foo.txt
> Well, this is definitely NOT a general Linux question unless you can show
> it happens on other Linux platforms.

Sparse files are not unique to Linux.  They exist in NTFS and others.
They are not OS dependent but rather applications create them. I bet you
have such files on your system. Look at /var/log/lastlog for example.

Oh, right.  (sheepish :-)

My lastlog is ls -l at 146584 but du's at 36K.

(sigh)

mhr

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux