ln command is used to create either hard or symbolic links. It is used in one of two ways:
to create a hard link and
to create a symbolic link where
item is either a file or a directory.
Hard links are the original Unix way of creating links; symbolic links are more modern. By default, every file has a single hard link that gives the file its name. When we create a hard link, we create an additional directory entry for a file. Hard links have two important limitations:
A hard link cannot reference a file outside its own filesystem. This means a link cannot reference a file that is not on the same disk partition as the link itself.
A hard link cannot reference a directory.
A hard link is indistinguishable ...