From owner-freebsd-questions Mon Oct 7 22:16: 3 2002 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 8AD0137B401 for ; Mon, 7 Oct 2002 22:16:02 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B13D43E86 for ; Mon, 7 Oct 2002 22:16:02 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 3E40429102; Tue, 8 Oct 2002 01:16:01 -0400 (EDT) Date: Tue, 8 Oct 2002 01:16:01 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: SweeTLeaF Cc: FreeBSD LIST Subject: Re: help with ln "linking" Please! [attn manpage authors!] In-Reply-To: <1034052310.551709c0SweeTLeaF@myrealbox.com> Message-ID: <20021008011209.B35848-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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