Why are my links going in the wrong place?
Dotan Cohen
dotancohen at gmail.com
Tue Dec 28 15:57:50 UTC 2010
On Tue, Dec 28, 2010 at 17:33, Colin Law <clanlaw at googlemail.com> wrote:
> I think if you look at man ln you will see that it is doing what you are asking
>
I've spent a good ten minutes in the manpage before I posted, you know
me better than that!
> SYNOPSIS
> ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
> ln [OPTION]... TARGET (2nd form)
> ln [OPTION]... TARGET... DIRECTORY (3rd form)
> ln [OPTION]... -t DIRECTORY TARGET... (4th form)
>
> DESCRIPTION
> In the 1st form, create a link to TARGET with the name
> LINK_NAME. In the 2nd form, create a link to TARGET in
> the current directory. In the 3rd and 4th forms, create links
> to each TARGET in DIRECTORY. Create hard links
> by default, symbolic links with --symbolic. When creating hard
> links, each TARGET must exist. Symbolic links
> can hold arbitrary text; if later resolved, a relative link is
> interpreted in relation to its parent direc‐
> tory.
>
> You are using the 3rd form so it puts a link to TARGET in DIRECTORY.
> I think maybe you want the params the other way around.
>
Thanks. I have tried different combinations of -st, -ts, -s -t, -t -s,
and the equivalents with the uppercase T. I didn't bother to report
all that, I figured that the post was long enough! Sorry, I should
have been more verbose.
I know that I can reverse the order of the arguments, but that always
gets me confused. It is much easier for me to remember which flags to
use.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the ubuntu-users
mailing list