`ls -l` shows size of file other than of the folder?

illoai at gmail.com illoai at gmail.com
Wed Jun 13 23:19:07 UTC 2012

On 13 June 2012 16:23, Peter Vereshagin <peter at vereshagin.org> wrote:
> Hello.
> I have the directory in the file system with 2 regular files each  of  which  is
> sized as 700M according to 'ls -l'.  But the torrent client and 'du -s' and  'ls
> -l's 'total' show that the directory size is 300M.
> How can that be?  Are there different file sizes  stored  on  a  ufs1  in  their
> metadata?
> ot the least how could I see the 'real' size of each of those files, both  ~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).


More information about the freebsd-questions mailing list