Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2002 00:01:38 -0700
From:      Adam Weinberger <adam@vectors.cx>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        SweeTLeaF <SweeTLeaF@myrealbox.com>, FreeBSD LIST <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: help with ln "linking" Please! [attn manpage authors!]
Message-ID:  <20021008070138.GN81796@vectors.cx>
In-Reply-To: <20021008011209.B35848-100000@earl-grey.cloud9.net>
References:  <1034052310.551709c0SweeTLeaF@myrealbox.com> <20021008011209.B35848-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> (10.07.2002 @ 2216 PST): Peter Leftwich said, in 1.5K: <<
> On Mon, 7 Oct 2002, SweeTLeaF wrote:
> > I am in the /usr/root ....dir
> > ln -s desktop /root/Desktop/tmp
> 
> You should be using `ln -s /root/Desktop/tmp /usr/root/desktop`

no, he shouldn't be. when he looks at /root/Desktop/tmp he wants to see
the contents of /usr/root/desktop. remember it this way, peter: the file
that doesn't exist yet comes last.

the problem with your command, sweetleaf, is that "ln -s desktop ..."
doesn't make a link to "desktop" in your current directory. it makes it
relative to the link. your command makes a link from /root/Desktop/tmp
to /root/Desktop/desktop.

unless you have a specific reason for making links relative, qualifying
all links with full path names is your safest bet.

-Adam


--
"Oh good, my dog found the chainsaw."
        -Lilo, "Lilo & Stitch"
Adam Weinberger
adam@vectors.cx


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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