I've got to confess, I have for years been guilty if not reading the documentation. I simply go with the flow and hope it works...

But not anymore! And why the change you may ask? We'll, I'm reading the f..ing documentation on Rocky linux and I'm just blown away from the amount of great information!

If you've been guilty of not reading the documentation, let me me know what changed it for you

If you're not reading the documentation, this is your time to confess!

you are viewing a single comment's thread
view the rest of the comments
[–] 19 points 1 year ago (5 children)

Yes. 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.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 10 points 1 year ago

    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

  • source
  • parent
  • [–] 10 points 1 year 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

  • source
  • parent