From owner-freebsd-questions Tue Aug 17 11:17:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 256F215712 for ; Tue, 17 Aug 1999 11:17:32 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id OAA28074; Tue, 17 Aug 1999 14:17:55 -0400 (EDT) Date: Tue, 17 Aug 1999 14:04:37 -0400 (EDT) From: Zhihui Zhang To: rssh@grad.kiev.ua Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Explain the output of ls In-Reply-To: <37B9A12E.AFB05A35@Shevchenko.Kiev.UA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 17 Aug 1999, Ruslan Shevchenko wrote: > Zhihui Zhang wrote: > > > > Could anyone tell me why the total number given by ls is 13 instead of 12? > > > > total is number of blocks, not number of files. > > > > ls -al > > total 13 > > drwxr-xr-x 6 zzhang wheel 512 Aug 18 11:44 . > > drwxr-xr-x 5 zzhang wheel 512 Aug 18 12:50 .. > > -rwxr-xr-x 1 zzhang wheel 4361 Aug 18 11:44 a.out > > -rw-r--r-- 1 zzhang wheel 0 Aug 18 09:48 emptyfile6 > > drwxr-xr-x 2 zzhang wheel 512 Aug 18 09:46 file1 > > drwxr-xr-x 2 zzhang wheel 512 Aug 18 09:46 file4 > > prwxr-xr-x 2 zzhang wheel 0 Aug 18 09:46 file5 > > prwxr-xr-x 2 zzhang wheel 0 Aug 18 09:46 file5link > > lrwxr-xr-x 1 zzhang wheel 16 Aug 18 09:47 homedir -> /usr/home/zzhang > > drwxr-xr-x 2 zzhang wheel 512 Aug 18 09:46 newfile3 > > drwxr-xr-x 2 zzhang wheel 512 Aug 18 09:47 newlongerfile2 > > -rw-r--r-- 1 zzhang wheel 1613 Aug 18 11:44 opendir.c > > The manual of ls(1) says it is the number of 512-byte blocks. Actually, it is the number of 1024-byte blocks. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message