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.