by icambron · 13y ago · 0 comments
cp <orig> <copy>
Hence I think of it as ln <orig> <link>
(edit: formatting) SYNOPSIS
ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
He just replaced TARGET with 'orig'Hence the confusion, I guess.
(I don't think I've ever read the ln man page. I learned it by trying it both ways until I learned which way was correct.)
ln -s target link
Easiest way to remember is that it's setup so that you can create multiple links to the same target. E.g.: ln -s /home/.bashrc {~user1,~user2,~user3}/.bashrc ln -s /path/to/some/file
And it'll create a symlink called "file" in the current directory. That wouldn't be possible if the arguments were the other way around.I think this is because 'to copy' is a transitive verb and 'to link' is instransitive, in the sense they are used here...?