Differences between Linux hard links and soft links, linux links and soft links
1. The hard-link file and the original file point to the same data. The two are like clones, and the inode number is the same. When the original file is deleted,
The hard link file is still valid. However, hard-link files are different from file replication. It should be said that the hard link file is generated only by the original file
When the contents of the directory file change, the data of the original file is not copied, but the copied file has two copies of data on the disk. Simple
Hard links are similar to aliases. When the original name does not exist, the alias can still be used.
2. The Shortcut of the soft connection is the same as that of the windows system. The soft link is different from the inode of the original file. The content of this file refers
The path to the original file. Soft links are like pointers. Hard links are references.
Conclusion: hard links are similar to references of C ++, and soft links are similar to pointers of C ++.
Inode (I node) Detailed parsing see: http://www.cnblogs.com/itech/archive/2012/05/15/2502284.html