Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 19:19:06 -0400
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Peter Vereshagin <peter@vereshagin.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: `ls -l` shows size of file other than of the folder?
Message-ID:  <CAHHBGkoG=-PAZ4s3Qg7t4bgEWcwCLJzWajGv_o-YaEzQYeeNvA@mail.gmail.com>
In-Reply-To: <20120613202325.GC5800@external.screwed.box>
References:  <20120613202325.GC5800@external.screwed.box>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 June 2012 16:23, Peter Vereshagin <peter@vereshagin.org> wrote:
> Hello.
>
> I have the directory in the file system with 2 regular files each =A0of =
=A0which =A0is
> sized as 700M according to 'ls -l'. =A0But the torrent client and 'du -s'=
 and =A0'ls
> -l's 'total' show that the directory size is 300M.
>
> How can that be? =A0Are there different file sizes =A0stored =A0on =A0a =
=A0ufs1 =A0in =A0their
> metadata?
>
> ot the least how could I see the 'real' size of each of those files, both=
 =A0~150M
> actulally, with a system command?
>

The -s flag to ls(1) will show you the actual number
of blocks in use (I believe it honours BLOCKSIZE,
though you might want to check).

--=20
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHBGkoG=-PAZ4s3Qg7t4bgEWcwCLJzWajGv_o-YaEzQYeeNvA>