"ls -lk" not showing file sizes in KB
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.