Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site burl.UUCP Path: utzoo!linus!decvax!tektronix!uw-beaver!cornell!vax135!floyd!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxm!ihnp4!we13!burl!rcj From: rcj@burl.UUCP Newsgroups: net.unix-wizards Subject: USG 5.0 'find' and 'ls' blocksize questions Message-ID: <332@burl.UUCP> Date: Thu, 29-Sep-83 15:41:12 EDT Article-I.D.: burl.332 Posted: Thu Sep 29 15:41:12 1983 Date-Received: Sun, 2-Oct-83 20:26:01 EDT Organization: Western Electric, Burlington, NC Lines: 25 Our filesystems are configured as 1024-byte-block systems. The '-s' option on 'ls', however, lists the block sizes of files in number of *512*-byte blocks -- this discrepancy is not noted in the man page to my knowledge. Also, the 'find' command states that its '-size' option takes a number of 512-byte blocks as an argument, but this is not true. find /usr/games -size 133 -exec ls -ls {} \; yields: 269 -r-x------ 1 bin bin 135920 Apr 11 18:32 cbrogue Note that 1024 * 133 = 136192; 'find' is obviously using 1024-byte blocks. No other size will find the file 'cbrogue'. Anybody know of a rationale for this stuff? P.S.: Before anyone points out from the 'ls -ls' that 269 * 512 = 137728; which is much too large, remember that the '-s' option of 'ls' includes in its block count the number of indirect blocks as well. -- The MAD Programmer -- 919-228-3814 (Cornet 291) alias: Curtis Jackson ...![ floyd clyde ihnp4 mhuxv ]!burl!rcj