GNU bug report logs - #14525
ls -k produced no size, ls -lk lists in bytes? What's up w/k?

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Sat, 1 Jun 2013 01:05:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Linda Walsh <coreutils <at> tlinx.org>
To: 14525 <at> debbugs.gnu.org
Subject: bug#14525: ls -k produced no size, ls -lk lists in bytes?  What's up w/k?
Date: Fri, 31 May 2013 18:02:00 -0700
in Coreutils 8.21.1.1 (x86_64) on snoozy
When I type in ls -k, I get a small listing (filenames only horizontally)
(and no sizes).
When I type in ls -lk, I get a long listing -- but it isn't using K, but
bytes.

:-(.

Why k no worky?

I'd think:
1) ls -k should display the file size in k as ls -s display blocks.
2) ls -sk would display allocated size in k (which it may do?)
and
3)ls -l would display sizes in k.

Am I missing something about why 'k' doesn't work in 1 & 3?

Actually ls -s acts like ls -sk -- doesn't display blocks but -k-

Isn't a block 512B?






This bug report was last modified 6 years and 215 days ago.

Previous Next


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