On 06/01/2013, pancake <pancake_AT_youterm.com> wrote:
> Didnt checked, but i guess that ls -s show size in bytes and du in block
> bytes, which depends on filesystem.
Nope. Both show size in blocks [1].
It seems proper to do so in ls alone, with a flag of whether to add
sizes of all files below; thus we could drop du. One may argue that
the job of ls is not to add sizes, but now we have 2 utilities what
list files, which loses.
[1]
http://www.openbsd.org/cgi-bin/man.cgi?query=(ls, du)
Received on Sun Jan 06 2013 - 15:02:09 CET