USG 5.0 "find" and "ls" blocksize questions

Derek Andrew derek at sask.UUCP
Sun Oct 9 13:54:19 AEST 1983


While some systems use 512 byte blocks and others use 1024 byte blocks, it
would indeed be handy if the output of ls and df reported the same numbers
so one could compare different systems.  I think that these programs should
not report blocks, but rather Kilobytes used.  This removes the hardware
dependencies.  This brings up the question:

	If a file is less than 512 bytes and the system uses 512 byte
	blocks, is it alright for du to say the file consumes 1K?

This message is posted in response to the ongoing discussion of the
differences between what the different programs (ls, du, df, find) 
consider the file size to be.

Derek Andrew; U of Saskatchewan; utah-cs!sask!derek



More information about the Comp.unix.wizards mailing list