13,420
edits
Changes
→Linking Files
===Linking Files===
[[Image:link-purpose.png|thumb|right|100px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
''Links are powerful and add flexibility to Linux filesystems because everything is a file.<br><br>There are two types of Linux filesystem links: hard and soft. The difference between the two types of links is significant, but both types are used to solve similar problems. They both provide multiple directory entries (or references) to a single file, but they do it quite differently.'' <br><br>Reference: https://opensource.com/article/17/6/linking-linux-filesystem
'''Hard Links:'''
[[Image:hard-link-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
Hard link is a reference to the physical data on a file system
More than one hard link can be associated with the same physical data
'''Symbolic Links:'''
[[Image:symbolic-link-1.png|thumb|right|100px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
A Symbolic Link is an indirect pointer to a file – a pointer to the hard link to the file
You can create a symbolic link to a directory