[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Showing actual filesizes with ls
From: |
James Youngman |
Subject: |
Re: Showing actual filesizes with ls |
Date: |
Sat, 22 Jan 2005 13:46:02 +0000 |
User-agent: |
Mutt/1.3.28i |
On Sat, Jan 22, 2005 at 12:50:20PM +0100, Joakim Rosqvist (JRO.SE) wrote:
> I would like to see a new option to ls that works like --size (showing
> filenames and sizes in as many columns as will fit onscreen), but shows
> filesize instead of disk usage.
I have no opinion on this aspect.
> I volounteer to write the patch (in fact, I've already submitted it here,
> but got no feedback), so I'm asking for comments, e.g. what would be the
> best size to show for a symlink: the size of the link or the size of the
> file referred to? What would be the best default blocksize (currently,
> I'm using file_output_block_size which is 1).
The POSIX options -H and -L should control this. They are already
implemented. It might be worth also implementing the similar option
-P which BSD introduced. GNU find implements -P. The -P option turns
off any effect of -H or -L.
James.