Re: ls -s vs. du (was: Re: [dev] [st] font fallback)

From: Strake <strake888_AT_gmail.com>
Date: Mon, 7 Jan 2013 07:49:52 -0500

On 07/01/2013, Raphael Proust <raphlalou_AT_gmail.com> wrote:
> Real difference is du handles hard links (i.e. shows actual disk usage
> (as one would expect) by counting hard-linked files only once) while
> ls list files (as one would expect) (and optionally gives some
> information about them). Which wins.

Ah, yes, I missed this. Unix wins again.
Plan 9 ls has no R flag, which makes sense if truly ls's job is to
list directories and du's job is to delve deep, tho Unix 8th ls has
the flag.

On another note, I find it sadly amusing how "an unbelievable number
of options" [1] is fewer than most have today.

[1] http://man.cat-v.org/unix_8th/1/ls
Received on Mon Jan 07 2013 - 13:49:52 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 07 2013 - 14:00:05 CET