What is a hard link? What is a symbolic link? How can create them? Why I do not know about this!

How can we create them?

But. What would happen if we delete the original file?

  • can cross the file system
  • allows us to link between directories
  • has only the path of the original file, not the contents
  • can’t cross the file system boundaries (i.e. A hardlink can only work on the same filesystem)
  • can’t link directories
  • permissions will be updated if we change the permissions of source file
  • has the actual contents of original file, so that you still can view the contents, even if the original file moved or removed.

So. What do you prefer?

--

--

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
Oscar Morales

Oscar Morales

Chemical engineer. Software developer student.