I used to have that problem with ln until I realized it’s essentially the same ordering as cp: source, then destination. The source being the existing file that you’re linking to, and the destination being the link that you’re creating
Comment on I'm guilty of not reading the f..ing documentation
med@sh.itjust.works 2 weeks agoYes. But also, despite having done it literally thousands of times, I still can’t tell you which way round to put the target and the link name for a softlink on the first go.
My first guess is always
ln -s $NAME $TARGET
No amount of repetition will fix this.
turkalino@lemmy.yachts 2 weeks ago
qqq@lemmy.world 2 weeks ago
I feel seen
mvirts@lemmy.world 2 weeks ago
🤣 same
shrugs@lemmy.world 2 weeks ago
My trick to remember:
You can link to a target without giving a name to the link. ln will use the basename of the target file then. You can’t create a link without a target, so target has to go first since it’s not optional. Did it for me