From owner-freebsd-questions Sat May 8 18:12:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 1D87A15505 for ; Sat, 8 May 1999 18:12:06 -0700 (PDT) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt4-208-166-127-102.dialup.HiWAAY.net [208.166.127.102]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id UAA23692; Sat, 8 May 1999 20:11:48 -0500 (CDT) Received: from nospam.hiwaay.net (nospam.hiwaay.net [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id TAA50705; Sat, 8 May 1999 19:39:27 -0500 (CDT) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199905090039.TAA50705@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: David Abdemoulaie , FreeBSD Questions list From: David Kelly Subject: Re: Linking directories In-reply-to: Message from Alfred Perlstein of "Sat, 08 May 1999 05:14:36 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sat, 08 May 1999 19:39:27 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein writes: > On Fri, 7 May 1999, David Abdemoulaie wrote: > = > > How do I make a link to a directory? I have tried using ln but it onl= y > > seems to be able to link files > = > you need to use symbolic links, "man ln" the -s option is your friend. Don't just tell him that he can't make hard links, tell him why: The ability to make hard links to directories is restricted to root = because fsck(8) would get confused if a directory didn't have exactly = the right number of hard links to it. A really fun thing I like to do is to create symbolic links to = directories on other servers. For instance this shares the distfile = directory on PeeCee (assuming amd(8) is running): % cd /usr/ports % ln -s /host/PeeCee/usr/ports/distfiles distfiles The really nice thing about the above is the remote filesystem is = automatically mounted when needed. Then later umounted. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message