Is there anything that could help me memorise the argument order of the ln command?

I’ll take anything from little helper phrases over shell extensions to replacements written in Rust. I only use the command occasionally, but I need a fool-proof solution. Do you have any tricks to get it right?

@linuxquestions

#AskFedi #Linux

  • gazby@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 hours ago

    I remember it because it has the one-arg form which only takes the target, so that’s the first arg. Good luck!

    • zagaberoo@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 hours ago

      This is the one that works for me, too.

      A link operation is meaningless without a target, so that must come first.

      If you don’t specify a name for the link, a reasonable name can be inferred from the target. So, the link name goes last, where it can be potentially omitted.