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

From: pancake <pancake_AT_youterm.com>
Date: Sun, 6 Jan 2013 13:44:26 +0100

Didnt checked, but i guess that ls -s show size in bytes and du in block bytes, which depends on filesystem.

ls -s : file size
du : disk used

On Jan 6, 2013, at 13:02, markus schnalke <meillo_AT_marmaro.de> wrote:

> [2013-01-05 18:55] Christoph Lohmann <20h_AT_r-36.net>
>>
>> % ls -hs st-0.3/st
>> 126K st
>
> I wondered why 20h did not use `du -h st-0.3/st' instead.
>
> Then I wondered why ls(1) has `-s' at all.
>
> Even in 1st Edition Unix, ls(1) has `-s' although du(1) is available.
> http://man.cat-v.org/unix-1st/1/ls
> http://man.cat-v.org/unix-1st/1/du
>
> Does someone of you have more information on this?
>
>
> meillo
>
Received on Sun Jan 06 2013 - 13:44:26 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 06 2013 - 13:48:04 CET