Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!celtics!roger From: roger@celtics.UUCP (Roger B.A. Klorese) Newsgroups: comp.unix.questions Subject: Re: Can't ls -l add file sizes properly?? Message-ID: <1879@celtics.UUCP> Date: Thu, 19-Nov-87 15:19:12 EST Article-I.D.: celtics.1879 Posted: Thu Nov 19 15:19:12 1987 Date-Received: Sun, 22-Nov-87 08:06:10 EST References: <456@morgoth.UUCP> Reply-To: roger@celtics.UUCP (Roger B.A. Klorese) Organization: CELERITY (Northeast Area), Framingham, MA Lines: 38 In article <456@morgoth.UUCP> glidden@morgoth.UUCP (Ken A. Glidden) writes: |# ls -l |total 40 |-rwxr--r-- 1 glidden 2117 Aug 6 12:17 acctrpt |-rwxr--r-- 1 glidden 179 Mar 2 1987 age.csh |-rwxrwxr-- 1 root 1308 Aug 4 16:39 arcjobs.sh |-rwxr-x--- 1 glidden 29696 Mar 2 1987 deltime |-rwxr--r-- 1 glidden 269 Sep 9 1986 mailbarry |-r-xr--r-- 1 glidden 296 Aug 25 1986 mailjim |-rwxr--r-- 1 glidden 728 Jan 7 1987 newsindex |-rw-r--r-- 1 root 1132 Aug 4 14:11 tmp | ====== |SUBTOTAL------> 35,725 | |**** |Why does the ls -l "total" give me 40Kb and my manual addition of the file |sizes give me 35.7Kb !?!?!?! (Note: This came from Ultrix 2.0 on a DEC uVAX II) "ls -l" is counting allocated fragments. Disk is allocated, in this case, in 1KB fragments, so you should add: total 40 -rwxr--r-- 1 glidden 2117 Aug 6 12:17 acctrpt 3096 -rwxr--r-- 1 glidden 179 Mar 2 1987 age.csh 1024 -rwxrwxr-- 1 root 1308 Aug 4 16:39 arcjobs.sh 2048 -rwxr-x--- 1 glidden 29696 Mar 2 1987 deltime 29696 -rwxr--r-- 1 glidden 269 Sep 9 1986 mailbarry 1024 -r-xr--r-- 1 glidden 296 Aug 25 1986 mailjim 1024 -rwxr--r-- 1 glidden 728 Jan 7 1987 newsindex 1024 -rw-r--r-- 1 root 1132 Aug 4 14:11 tmp 2048 ====== ===== SUBTOTAL------> 35,725 40960 -- ///==\\ (Your message here...) /// Roger B.A. Klorese - CELERITY (Northeast Area) \\\ 40 Speen St. Framingham, MA 01701 USA +1 617 872-1552 \\\==// celtics!roger@necntc.NEC.COM - necntc!celtics!roger