The result of "ls -k" is different between RHEL7 and earlier.
Issue
-
In REHL6, the -k option sets the file size unit to 1KiB.
# ls -l test.txt -rw-r--r-- 1 root root 49561027 Apr 28 11:55 test.txt # ls -lk test.txt -rw-r--r-- 1 root root 48400 Apr 28 11:55 test.txt
-
In RHEL7, no change in file size when using the -k option
# ls -l test.txt -rw-r--r-- 1 root root 1746 Apr 28 11:50 test.txt # ls -lk shell.log -rw-r--r-- 1 root root 1746 Apr 28 11:50 test.txt
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- coreutils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.