Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2003 21:58:31 +0000
From:      Daniela <dgw@liwest.at>
To:        Marty Landman <MLandman@face2interface.com>, freebsd-questions@freebsd.org
Cc:        Steve Bertrand <iaccounts@northnetworks.ca>
Subject:   Re: symlink confusion
Message-ID:  <200311122158.31594.dgw@liwest.at>
In-Reply-To: <6.0.0.22.0.20031112153352.0507dc38@pop.face2interface.com>
References:  <20031112200057.9D8A216A64E@hub.freebsd.org> <6.0.0.22.0.20031112153352.0507dc38@pop.face2interface.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311122158.31594.dgw>