[CentOS] differnt results between df and ls

Alfred von Campe alfred at 110.net
Thu Mar 29 10:58:40 UTC 2007


On Mar 29, 2007, at 6:48, Tom Brown 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

This is probably a sparse file.  What does a "du -sh --apparent-size"  
report?

Alfred




More information about the CentOS mailing list