bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22879: Typo on ls man page


From: Assaf Gordon
Subject: bug#22879: Typo on ls man page
Date: Wed, 2 Mar 2016 11:17:17 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]