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
    11
    ·
    13 hours ago

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

      • traches
        link
        fedilink
        English
        arrow-up
        4
        ·
        12 hours 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
          ·
          12 hours 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
            2
            ·
            11 hours ago

            Ahhh sorry I read it as a question

    • infeeeee@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      13 hours 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