What is the difference between a hard link and a symbolic link?

Source: https://medium.com/@elenaserebryakoff/hard-link-vs-symbolic-link-c9d8b979f237. Owner: Elena Serebryakova

Symbolic link

This links are created with the command

ln -s [Path] [Name ]

On the following image we can see how this link looks on the console. This links are commonly used for the directories that contains the versions of the system. This allow to update the version of different links at once because all the links are pointing to the same folder.

Hard links

ln [Path][Name]

We can see an example on the console here:

Now that you know the difference link , i hope you can handle them with more ease.

--

--

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