Re:I always forget the argument order of the `ln -s` command
by xentronium on Wednesday December 08, 2010 @05:32PM
(#1984942)
"to" is an entity that doesn't exist yet.
Re:I always forget the argument order of the `ln -s` command
by kaerast on Wednesday December 08, 2010 @05:55PM
(#1985049)
Exactly! The rule is for that commands of two letters in length (cp, ln, mv) the file on the end is the one that gets created. For commands of three letters in length (tar, zip) the file that gets created is the first one. And then there's the exceptions that prove the rule like scp and ssh.
And people say Linux isn't user-friendly! :)
Is the "from" the file/dir I want to copy "to" a link?
Or is the "from" the name of a link I want to point "to"?
The dual meaning of some terms that the concept of links and making links creates causes a lot of this confusion, IMHO. Are we using terminology that refers to the act of creating the link or that refers to the direction of the link?
Similarly, I don't think it helps that the usage text and manpage for ln refer to "target"s.
(I know what you mean by your examples but I wanted to share my pet theory as to why this is always so hard to remember)