tag 22879 notabug
close 22879
stop
Hello Antonion,
On 03/02/2016 04:20 AM, Antonio Morell wrote:
there is a typo in the man page of command *ls*. It incorrectly states -l
in the explanation:
-h, --human-readable
with -l, print sizes in human readable format (e.g., 1K 234M
This is not a typo, it is the correct explanation.
Using "-h" by itself (e.g. "ls -h") does not print sizes at all, neither exact
sizes of human-readable sizes.
only in conjunction with '-l' (e.g. "ls -lh") the sizes are printed in
human-readable format.
Compare the following:
$ seq 10000 > test
$ ls -h
test
$ ls -l
total 48
-rw-rw-r-- 1 gordon gordon 48894 Mar 2 11:16 test
$ ls -lh
total 48K
-rw-rw-r-- 1 gordon gordon 48K Mar 2 11:16 test
As such, I'm closing the bug, but discussion can continue by replying to this
thread.
regards,
- assaf