[cs631apue] The confusing output of Linux/GNU ls

Jan Schaumann jschauma at stevens.edu
Fri Oct 17 21:45:17 EDT 2014

zding4 <zding4 at stevens.edu> wrote:
> In the long format part of ls.pdf
> In addition, for each directory whose contents are displayed, the total  
> number of blocks in units of 512 bytes
> or BLOCKSIZE (see ENVIRONMENT)used by the files in the directory is  
> displayed on a line by itself
> immediately before the information for the files in the directory.

That's correct.  The 'total' in the long listing is the total number of
blocks, not bytes.  The manual page has been updated to remove the
confusing reference to the file sizes.


More information about the cs631apue mailing list