From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 13:02:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA7216A4CE for ; Wed, 12 Nov 2003 13:02:48 -0800 (PST) Received: from lilzmailfe02.liwest.at (lilzmailfe02.liwest.at [212.33.55.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0D4943F75 for ; Wed, 12 Nov 2003 13:02:47 -0800 (PST) (envelope-from dgw@liwest.at) Received: from [212.33.58.27] (helo=cm58-27.liwest.at) by lilzmailfe02.liwest.at with esmtp (Exim 4.14) id 1AK28T-00009t-0m; Wed, 12 Nov 2003 22:02:45 +0100 From: Daniela To: Marty Landman , freebsd-questions@freebsd.org Date: Wed, 12 Nov 2003 21:58:31 +0000 User-Agent: KMail/1.5.3 References: <20031112200057.9D8A216A64E@hub.freebsd.org> <6.0.0.22.0.20031112153352.0507dc38@pop.face2interface.com> In-Reply-To: <6.0.0.22.0.20031112153352.0507dc38@pop.face2interface.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311122158.31594.dgw@liwest.at> cc: Steve Bertrand Subject: Re: symlink confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 21:02:49 -0000 On Wednesday 12 November 2003 20:38, Marty Landman wrote: > At 03:00 PM 11/12/2003, you wrote: > ># ln -s /home/steve/directory /tmp/directory > ># rm /tmp/directory > > > >In testing, the original directory (/home/steve/directory) did not get > > removed > > I'm a newbie Steve so maybe will be asking more than answering here. But > isn't it the case that with a soft link as you created in the first line in > the second line you'd only be deleting the link itself and not the actual > directory? But if you used a hard link You can't make hard links to directories. See ln(1) for more info. > # ln /home/steve/directory /tmp/directory > # rm /tmp/directory > > then the real directory would be deleted? > > > Marty Landman Face 2 Interface Inc 845-679-9387 > Sign On Required: Web membership software for your site > Make a Website: http://face2interface.com/Home/Demo.shtml > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"