"ls -lk" not showing file sizes in KB

Solution In Progress - Updated -

Issue

The ls -lk command is not showing file sizes in bytes, not kilobytes.

# ls -l
total 24
-rw-r--r--. 1 root root  4096 Apr 17 02:45 file1.txt
-rw-r--r--. 1 root root  8192 Apr 17 02:45 file2.txt
-rw-r--r--. 1 root root 12288 Apr 17 02:45 file3.txt

# ls -lk
total 24
-rw-r--r--. 1 root root  4096 Apr 17 02:45 file1.txt
-rw-r--r--. 1 root root  8192 Apr 17 02:45 file2.txt
-rw-r--r--. 1 root root 12288 Apr 17 02:45 file3.txt

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content