file size different from ls to du

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

  • Next message: Drew Eckhardt: "Re: file size different from ls to du"
    Date: Tue, 29 Jul 2003 17:19:07 +0200 (CEST)
    To: <freebsd-hackers@FreeBSD.ORG>
    
    

            Hi everyone,

     I have sort of a newbie question, but that I cannot explain myself. I get
    some large files in 'ls -al', but when I 'measure' them with 'du', the
    size is much small. Example:

    (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?

     Thanks,
     bogdan

    _______________________________________________
    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: Drew Eckhardt: "Re: file size different from ls to du"

    Relevant Pages

    • RE: FXP driver....
      ... > it's some sort of timing ... >>To unsubscribe, send any mail to ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (freebsd-questions)
    • RE: test2 please ignore
      ... mailing list through lets say usenet news interface. ... spammers do this sort of crap all the time. ... There are many, far better, venues with which to test email transport ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Why do people in the UK put a u in the word color? IS THERE A MODERATOR FOR THIS LIST???
      ... That made any sort of on-list discussion very awkward. ... because I personally dislike it". ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Contacts printing
      ... Grep is to search for string within files, how can it do sorting jobs? ... I want to cat all those file into one file and then sort the above entries, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [OT] Setting up getmail to retrieve mails from gmail [Was: Re: [OT] GMail troubles [Was: Re: du&
      ... mails sent specifically to mailing lists, i am subscribed to - some ... Depending on what sort of threading you use, it seems to make sense to ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)