A link in UNIX is a pointer to a file or a directory. Creating links is a kind of shortcuts to access a file (because the path may be hard to remember for example).
There are two types of links :
— Soft Link or Symbolic links
— hard link
links behave differently when the source of the link is moved or removed. Symbolic links are not updated (they merely contain a string which is the pathname of its target); hard links always refer to the source, even if moved or removed.
=>Hard links are more flexible than soft links