From owner-freebsd-questions Thu Oct 30 23:40:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA19263 for questions-outgoing; Thu, 30 Oct 1997 23:40:40 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA19257 for ; Thu, 30 Oct 1997 23:40:36 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id SAA23269; Fri, 31 Oct 1997 18:10:11 +1030 (CST) Message-ID: <19971031181011.62216@lemis.com> Date: Fri, 31 Oct 1997 18:10:11 +1030 From: Greg Lehey To: wolftoy@ix.netcom.com Cc: FreeBSD Questions Subject: Re: unlink References: <34598179.372D@ix.netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34598179.372D@ix.netcom.com>; from Wolf Toy on Fri, Oct 31, 1997 at 12:58:01AM -0600 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Oct 31, 1997 at 12:58:01AM -0600, Wolf Toy wrote: > Hi everyone, > I have linked two directories together using ln Hopefully ln -s. > and know I need to unlink them but I can't find unlink(If this is > even the right command I need). The system call is called unlink(2), but the command is rm(1) (for files and symbolic links) and rmdir(1) for directories. If you've used ln -s, you have a symbolic link, not a directory, so you want to use rm(1). Greg