Re: file size different from ls to du

From: Bogdan TARU (bgd_at_icomag.de)
Date: 07/29/03

  • Next message: Leo Bicknell: "Re: file size different from ls to du"
    Date: Tue, 29 Jul 2003 17:27:14 +0200 (CEST)
    To: Drew Eckhardt <drew@PoohSticks.ORG>
    
    

            Hi Drew,

     I have tried to create some files of myself, with 'spaces' in them
    (holes?), but they don't act like this. So could you please explain what
    'sparse' means, and the 'trick' to create them?

     Thanks,
     bogdan

    On Tue, 29 Jul 2003, Drew Eckhardt wrote:

    > In message <20030729171356.M2453-100000@fw.office.icom>, bgd@icomag.de writes:
    > >(17:13) bgd@(bgd)[~/temp] ls -alsh my_file
    > >19120 -rw-r--r-- 1 root bgd 763M Jul 29 16:56 my_file
    > >(17:13) bgd@(bgd)[~/temp] du -sh my_file
    > > 19M my_file
    > >
    > > So the 'ls -alsh' shows a file in size of 763M, but 19M of sectors are
    > >really 'occupied'. Can someone explain, please?
    >
    > unix files can be sparse.
    >
    > --
    > Home Page
    > For those who do, no explanation is necessary.
    > For those who don't, no explanation is possible.
    >

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Leo Bicknell: "Re: file size different from ls to du"

    Relevant Pages

    • Re: [ML ISSUE] reply-to field ?
      ... The method of handling Reply-To: in this mailing list is in ... explanation is usually not a problem. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Getting the best answer(WAS: RE: How do you dynamically assign array names?)
      ... How do you dynamically assign array names? ... explanation of the problem? ... Rob ... To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional ...
      (perl.beginners)
    • Re: English Feudal Baronies (update)
      ... Since this explanation is contradicts to ... The term 'floating dignity' may be accepted as correct, ... The Act makes it an offence to procure the GRANT (by the ...
      (rec.heraldry)
    • Re: Do You Believe In JESUS?
      ... you claim to be proving incorrect. ... going to argue against something, ... you have proven that you reject said explanation ... be a student and then act as if you know it all. ...
      (alt.religion.christian)
    • Re: Is the xserver-xorg configuration system broken?
      ... systematic solution or explanation. ... It might have had to do with the choice of input level that you are asked the first time which I don't know how to reset. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)