Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 17:19:07 +0200 (CEST)
From:      Bogdan TARU <bgd@icomag.de>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   file size different from ls to du
Message-ID:  <20030729171356.M2453-100000@fw.office.icom>

next in thread | raw e-mail | index | archive | help

	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030729171356.M2453-100000>