bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible enhancement in ls


From: Eric Blake
Subject: Re: possible enhancement in ls
Date: Tue, 28 Mar 2006 05:18:10 -0700
User-agent: Thunderbird 1.5 (Windows/20051201)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Arjun Shankar on 3/26/2006 10:00 PM:
> Hi!
> I have noticed that in the 'ls' program, there is no option to show
> the size of the _contents_ of a directory. Would it not make more
> sense if the program showed the size of a directory as - "it's size
> plus the size of files and subdirectories", where the size of the
> subdirectories would also be calculated in the same way.

Thanks for the request - however, what you describe is already available
in the du (diskusage) utility.  This feature will probably never be added
to ls, because it is much slower to traverse all subdirectories and do
additional stats in order to find the total size contained in a directory.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEKSmC84KuGfSFAYARAsUuAKDFFMy7ZUiBOujBzyrFWjz4QTSIrgCdHlOR
LjW7znpRjRGz+dEOKGKUaGI=
=z5kk
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]