GNU bug report logs - #18503
[bug-report] the output of ls -lsh

Previous Next

Package: coreutils;

Reported by: gemfield <gemfield <at> civilnet.cn>

Date: Thu, 18 Sep 2014 21:52:04 UTC

Severity: normal

Tags: notabug

Merged with 17838

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Linda A. Walsh" <coreutils <at> tlinx.org>
To: gemfield <gemfield <at> civilnet.cn>
Cc: 18503 <at> debbugs.gnu.org
Subject: bug#18503: [bug-report] the output of ls -lsh
Date: Thu, 18 Sep 2014 16:17:40 -0700
gemfield wrote:
>    Hi,
>    I am running ls -lsh on kubuntu 14.04, here is the output:
>    gemfield <at> gemfield-ThinkPad-Edge:~$ ls -ls
>    4 -rw-rw-r-- 1 gemfield gemfield    9  9 18 23:12 test
>    gemfield <at> gemfield-ThinkPad-Edge:~$ ls -lsh
>    4.0K -rw-rw-r-- 1 gemfield gemfield    9  9 18 23:12 test
>    the "4" colored by green means 4 blocks, so why becomes 4.0K blocks
>   
>    when add -h option to ls -ls?
>   
4  * 1K blocks = 4.0K blocks.

-h has been an option of ls for many years.

blocks in "ls" are 1K in size.

What problem or bug are you reporting?

Seems to be working it ever has....(or I'm missing your point).






This bug report was last modified 10 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.