Date: Tue, 17 Aug 1999 14:04:37 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: rssh@grad.kiev.ua Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Explain the output of ls Message-ID: <Pine.GSO.3.96.990817140202.18922B-100000@sol.cs.binghamton.edu> In-Reply-To: <37B9A12E.AFB05A35@Shevchenko.Kiev.UA>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990817140202.18922B-100000>