Soft links vs. Hardlinks
layer8problems
Member Posts: 18 ■■■□□□□□□□
in Linux+
So far I understand that a hard link is simply a second directory index entry pointing to the same data (inode). As if on the page of contents of a book it might say:
Chapter 1 - Page 12
Chapter 7 - Page 12
So deleting the "Chapter 7" entry wouldn't affect the data because it still has the original hard link pointing to the data. Am I understanding this correctly?
Where as a symlink would be a seperate file with its own inode pointing to the target file's path?
Chapter 1 - Page 12
Chapter 7 - Page 12
So deleting the "Chapter 7" entry wouldn't affect the data because it still has the original hard link pointing to the data. Am I understanding this correctly?
Where as a symlink would be a seperate file with its own inode pointing to the target file's path?
Comments
-
hiddenknight821 Member Posts: 1,209 ■■■■■■□□□□Keep reading on the subject or research it elsewhere to reinforce your understanding. You'd need to understand the inode link count as I believe that's where you got lost.
My Google-fu lead me to this: Hard links and Unix file system nodes (inodes)