Samir Millan
1 min readSep 16, 2019

Symbolic Link And Hard Link In Linux

Simply put, symbolic link is the actual file, while a hard link is a copy of the original file. If, for some reason, we delete the original file, the symbolic link loses its value because it comes directly from it.
In the case of link hard link the opposite happens, if you delete the original file it does not lose its data because link hard link is a mirror copy of the original.

To create a symbolic file remember to create a folder and create a file in it. Now we will use the following command. $ ln -s source.file softlink.file

$ ln -s source.file softlink.file

Finally to create a hard link we will use the following command. $ ln source.file hardlink.file

$ ln source.file hardlink.file

Samir Millan
Samir Millan

No responses yet