Re:Everything I googled in a week as a professional software...
by rohit2412 on Friday September 06, 2019 @03:42PM
(#20899173)
I always think of links as pointing from source to destination. Your way would break that intuition for me. It would be the source of the address and the destination for the address to be copied to.
Re:Everything I googled in a week as a professional software...
by bonoboTP on Friday September 06, 2019 @04:36PM
(#20899649)
Remember it like this: just as in cp, the file that already exists comes first, the file/link we are creating now comes second.
Re:Everything I googled in a week as a professional software...
by unoti on Friday September 06, 2019 @03:46PM
(#20899216)
I understand fully; that’s also how I thought of it for years and why I couldn’t ever remember it. But if you think about it like copying a file it’s easier to remember. And it is like copying a file— it’s copying a reference to a file.
Remember it like this: It's the same syntax as "cp". To copy a file you use "cp source dest". It's the same for ln: "ln -s source dest"