14

I don't use ln command on daily basis, so when I need to create a link to a file, I always forget whether it's ln <target file> <link name>, or ln <link name> <target file>, so I have to take a quick glance at man ln.

As ln is commonly used in the process of software development, having the order firmly in memory would tremendously boost productivity.

Do you have any tricks (mnemonic?) for remembering the order of ln parameters?

xuhdev
  • 8,018
  • 2
  • 41
  • 69
dorserg
  • 5,454
  • 3
  • 24
  • 29
  • If you hesitate, type `ln --help` ... – Basile Starynkevitch May 07 '14 at 19:35
  • I was finally able to learn it after I remembered that the last part of second argument is the one that you have to _make up_ - it does not exists before. Like this, when making non-version link to newest Netbeans version: `ln -s $HOME/install/netbeans/netbeans8.0.2 $HOME/install/netbeans/netbeans` – nuoritoveri Dec 03 '14 at 17:00

1 Answers1

35

It takes arguments in the same order as cp and mv.

amalloy
  • 89,153
  • 8
  • 140
  • 205