From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 11:55:11 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 82E0916A4CE for ; Wed, 12 Nov 2003 11:55:11 -0800 (PST) Received: from mail2.northnetworks.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7311843FD7 for ; Wed, 12 Nov 2003 11:55:10 -0800 (PST) (envelope-from iaccounts@northnetworks.ca) Received: from svr3.northnetworks.ca (localhost.northnetworks.ca [127.0.0.1]) hACJn0XK012446 for ; Wed, 12 Nov 2003 14:49:00 -0500 (EST) (envelope-from iaccounts@northnetworks.ca) Received: from localhost (iaccounts@localhost)hACJmx8e012443 for ; Wed, 12 Nov 2003 14:49:00 -0500 (EST) X-Authentication-Warning: svr3.northnetworks.ca: iaccounts owned process doing -bs Date: Wed, 12 Nov 2003 14:48:59 -0500 (EST) From: Steve Bertrand To: freebsd-questions@freebsd.org Message-ID: <20031112143832.U11115@svr3.northnetworks.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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 19:55:11 -0000 Could someone please briefly describe the reactions to the following actions? Sometimes I delete the original directories by deleting links, and hopefully someone can give me some insight. # ln -s /home/steve/directory /tmp/directory # rm /tmp/directory In testing, the original directory (/home/steve/directory) did not get removed, but in reality, I am dealing with my X11R6 directory which had to be moved temporarily to make room for a port install. # ln -s /usr/X11R6 /home/steve/X11R6 Which put a new link from the original to the new location. If I # rm /home/steve/X11R6, will I be safe as to not delete the original directory? If this is true, what could I have done in the past that would of seen an entire directory structure deleted by deleting the link? Tks for your input. Steve