Difference between soft and hard links links [focus] pen questions

Difference between soft links and hard links?
Soft links: Linking files and linked files are two different files, delete the link file does not affect the linked file, but delete the file is linked, the linked file will fail, because the link is stored in the file are linked the name of the file.

Hard link: Link file and the linked file is the same file, because inode numbers of these two documents are the same, delete one file to another file still exists, delete files just because the number of links -1.

Published 50 original articles · won praise 5 · Views 1537

Guess you like

Origin blog.csdn.net/qq_42483691/article/details/104356098