Re: differnt results between df and ls

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



Tom Brown wrote:
Hi

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

any ideas ?

Sparse file. The file has holes in it:

# cd /var/log
# ls -lh lastlog
-r--------  1 root root 577M Mar 29 12:52 lastlog
# du -h lastlog
20K     lastlog

Remember to use -S when tar'ing a file like this :-)

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@xxxxxx Homepage: http://www.crc.dk
_______________________________________________
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