The difference between the link and ln commands

hard linkln

From the man pages:

ln - make links between files

and

link - call the link function to create a link to a file

These seem to do the same thing however ln takes a lot of options as well.

Is link just a very basic ln? Is there any reason to use link over ln?

Best Answer

link used solely for hard links, calls the link() system function and doesn't perform error checking when attempting to create the link

ln has error checking and can create hard and soft links