The difference between the symbol link and the hard link in the LN

xiaoxiao2021-03-19  199

I checked some information today, I tested it myself, I finally learned about the difference between-S and -D in LN.

The difference between hard links and symbolic links is that the hard links have the same I-node as the original files, ie they do not have the index of a space that points to a space stored data. The symbolic link can be understood as an index of the index of the original file. It is two different files with the original file. So if there is three files, a is the original file, B is the hard link of A, and C is a symbolic link of A. Just that the file or directory The content change will make the content of other files change. For the deletion of the original file, C will be unavailable, but there is no impact on B.B, C deletion does not have an impact on any file.

Note:

For the LN command default, hard links are built.-S is not Soft (soft) meaning, but the meaning of Symbolic (symbol), so it should be a symbolic link, not often a link, it should be corrected.

转载请注明原文地址:https://www.9cbs.com/read-130066.html

New Post(0)