[CentOS] differnt results between df and ls

Ralph Angenendt ra+centos at br-online.de
Thu Mar 29 11:02:21 UTC 2007


Tom Brown wrote:
> # ls -al foo.txt
> -r--r--r--  1 xxx xxx 1373149856 Mar 28 04:34 foo.txt
> 
> # du -sh foo.txt
> 808M    foo.txt

"man du", search for "--apparent-size". Your file seems to be a sparse
file with "holes" in it.

Cheers,

Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070329/ab2084ae/attachment.sig>


More information about the CentOS mailing list