Differences between hard connection and soft connection,Differences between hard connection and Replication?
Hard connection records the inode of the target, and soft connection records the path of the target.
Hard link can only be used for link in this partition because of inode. Soft link can be used for cross-partition link.
Hard connection records inode, so it is not afraid to change the name. For example, ln aaa bbb and mv aaa ccc can still be accessed at this time. Soft-link won't work: after the source name is changed, all soft-links linked here are changed to broken. In fact, even if the names of all hard-link files pointing to the inode change, each file can still be accessed. I think this is its biggest advantage.
Differences between hard connection and replication:
Several hard connections = several names of the same house. These names can be the same or different, but the addresses (I-node) are the same. Therefore, if a hard connection is deleted, the corresponding name is erased, only when the last name is erased will you be unable to find the house. Copying is to build an identical house, and of course the address (I-node) is different.