Hard link and Symbolic link : What are they ?

What is the difference between those two ?

  • The Hard link is a direct link to the content of the source file, it is like a mirror, it depend not of the source file existence, for example, even if the original file is removed, the hard link will still be effective. It can’t be linked to a directory and is valid only in the same file system. As it’s link is direct, it shares the same permissions as the source file.
  • The Symbolic link is not a direct link at the opposite of the hard link. It refers to the name of the source file and it is dependent of it, as the symbolic link will become useless without it’s referring file. Doesn’t link to the content of the source file but free of crossing file system boundaries and can possess different permissions than the original file.

How to create them ?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store