Illustration of linux soft connections and hard links

Source: Internet
Author: User
This article mainly introduces the linux system's soft connections and hard links. For more information, see

For my own images, refer:

Differences between hard links of soft connections:

Hard connection refers to the connection through the index node. In a Linux file system, a file stored in a disk partition is assigned with an Index node number (Inode Index) no matter what type it is ).
In Linux, multiple file names direct to the same index node. Generally, this type of connection is hard connection. The purpose of hard connection is to allow a file to have multiple valid path names, so that you can establish a hard connection.
File to prevent "accidental deletion. The reason is as described above, because there is more than one connection to the index node of the Directory. Deleting only one connection does not affect the connection between the index node and other nodes.
After the connection is deleted, the data block and directory connection of the file will be released. That is to say, the object will be deleted.

Soft-link files are similar to Windows shortcuts. It is actually a type of special file. In a symbolic connection, a file is actually a text file containing the location information of another file.

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.