How to identify Linux soft links and hard links

  
                

What are soft links and hard links in Linux systems? What are the differences between the two? The following small series gives you a comparison of the soft links and hard links of the Linux system, so that you have a deeper understanding.

I do next picture you reference:


difference between soft links hard link:

refers to hard-wired connection carried out by inode . In the Linux file system, files stored in a disk partition are assigned a number, called the Inode Index, regardless of the type.

In Linux, multiple file names point to the same index node. Usually this connection is a hard connection. The role of a hard link is to allow a file to have multiple valid pathnames so that users can hardwire to important

files to prevent <;false deletions". The reason for this is as described above, because there are more than one connection to the index node corresponding to the directory. Deleting only one connection does not affect the inode itself and other connections. Only when the last

connection is deleted, the file's data block and directory connections are released. In other words, the file will be deleted.

Soft link files are a bit like Windows shortcuts. It is actually a kind of special file. In a symbolic link, a file is actually a text file that contains location information for another file.

The above is the introduction of Linux soft links and hard links. Through the illustrations in the text, you have a certain understanding of soft links and hard links. If you want to know more, you may wish to know more. Pay attention to the system home.

Copyright © Windows knowledge All Rights Reserved