What is the difference between hard connection and soft connection? What is the difference between hard connection and replication?

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.