News for hackers. Stuff that matters.
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.
Re:Everything I googled in a week as a professional software... by Izkata on Friday September 06, 2019 @06:01PM (#20900297)
Try taking the command a step back with hardlinks: ln source dest

The association with cp makes a lot more sense then. This is how I learned it.