From owner-freebsd-questions Wed Sep 23 06:07:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21903 for freebsd-questions-outgoing; Wed, 23 Sep 1998 06:07:16 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horton.iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA21892 for ; Wed, 23 Sep 1998 06:07:11 -0700 (PDT) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.8/8.8.7) id IAA00468; Wed, 23 Sep 1998 08:06:21 -0500 (CDT) From: "Paul T. Root" Message-Id: <199809231306.IAA00468@horton.iaces.com> Subject: Re: directory In-Reply-To: <3608F5DE.1CC8D865@sweda.com.hk> from Peter Kok at "Sep 23, 98 09:21:34 pm" To: peter@sweda.com.hk (Peter Kok) Date: Wed, 23 Sep 1998 08:06:20 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, Peter Kok said: > Hello > > i type ls -l, it lists file type, access right, time and size > > there is different size for directory, some are > > drwxr-xr-x 2 bin bin 512 sep 16:00 bin > > drwxr-xr-x 4 root wheel 9728 sep 19 dev > > in fact, what is the meaning of 2 or 4 > and the size of directory 512 and 9728 > 2 & 4 is the number of links pointing to the file or directory. The size of the directory is based on how many inodes the directory needs to point to all the files in that directory. -- Never attribute to malice that which is adequately explained by stupidity. --Grant R. Gainey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message