Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2002 01:16:01 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        SweeTLeaF <SweeTLeaF@myrealbox.com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: help with ln "linking" Please! [attn manpage authors!]
Message-ID:  <20021008011209.B35848-100000@earl-grey.cloud9.net>
In-Reply-To: <1034052310.551709c0SweeTLeaF@myrealbox.com>

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

The manpage is super unclear about sourcefile and targetfile, I have said
this for years.  Think of this paragraph:

SYNOPSIS
     ln [-fhinsv] source_file [target_file]

Given one or two arguments, ln creates a link to an existing file
source_file.  If target_file is given, the link has that name; target_file
may also be a directory in which to place the link; otherwise it is placed
in the current directory.  If only the directory is specified, the link
will be made to the last component of source_file.

... as this instead `ln -s actualfile linkfile`

> Now i was exspecting to see all the contents for /usr/root/desktop when i viewed the /root/Desktop/tmp dir. but that did not happen.
> Now when i go to /root/Desktop/tmp ...i see the link for desktop but when i do a ls desktop to try and view the files inside desktop i get nothing and a cd desktop gives an sys link error...and there are more files in desktop. I guess i am trying to mirror the two dir, so even though they have different names and on different filesystems, i will see the same contents.
> Thanks for any help.

I think you just had it backwards.

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


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?20021008011209.B35848-100000>