Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!lll-tis!ptsfa!maxepr!cgh!amanue!pitt!cadre!pt.cs.cmu.edu!sei!sei.cmu.edu!pdb From: pdb@sei.cmu.edu.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: what does the link count of a directory show? Message-ID: <1369@aw.sei.cmu.edu> Date: Wed, 20-May-87 08:29:13 EDT Article-I.D.: aw.1369 Posted: Wed May 20 08:29:13 1987 Date-Received: Sat, 23-May-87 08:34:52 EDT References: <12913@vaxc.ARPA> Sender: netnews@sei.cmu.edu Reply-To: pdb@ci.sei.cmu.edu.UUCP (PUT YOUR NAME HERE) Organization: Carnegie-Mellon University, SEI, Pgh, Pa Lines: 11 Xref: utgpu comp.unix.questions:2158 comp.unix.wizards:2196 In article <12913@vaxc.ARPA> mkhaw@vaxc.ARPA (Michael Khaw) writes: >What does the "link count" shown by "ls -ld" mean for a directory? >Is it the same for SysV and 4bsd? At least on 4bsd, the link count for a directory is exactly that. Even though users can't link directories, mkdir(2) does it all the time. The special entries '.' and '..' in a directory are links to itself, and it's parent, respectively. If a directory has many subdirectories, it is possible for it's link count to be very large. --Pat.