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

David Brodbeck gull at gull.us
Thu Jun 14 21:52:50 UTC 2012

On Thu, Jun 14, 2012 at 12:37 PM, Peter Vereshagin <peter at vereshagin.org> wrote:
> Hello.
> 2012/06/14 00:23:25 +0400 Peter Vereshagin <peter at vereshagin.org> => To freebsd-questions at freebsd.org:
> PV> ot the least how could I see the 'real' size of each of those files, both  ~150M
> PV> actulally, with a system command?
> also, 'du' works that way for regular files. But implicitly I wanted about ls's
> key, thanks a lot guys!

Yes, the default for du is the actual disk usage, and "du -A" gives
the apparent size.  We run an OpenSolaris filer with on-the-fly
compression, and I've occasionally had people express confusion after
copying a large text file to it and finding the copy to be smaller
than the original when viewed with 'du'. ;)

More information about the freebsd-questions mailing list