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

  • traches
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 months ago

    It’s the same as cp or mv. Source dest.

      • traches
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 months ago

        Think of it like making a fake copy? Source file is first, symlink is second.

        • tburkhol@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months ago

          That’s what I mean: what you’re going to operate on; where you’re going to put it.

          • traches
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 months ago

            Ahhh sorry I read it as a question

    • infeeeee@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      This is how I remember as well. I write the command in my head if I would copy the file, than replace cp with ln