Reference from: http://www.ruanyifeng.com/blog/2011/12/inode.html
Suppose a txt text content is "Hello World" with an inode number of 123456:
Hard Link: Multiple file names (file paths) point to the same inode in the disk.
1) You can access the same content with a different file name;
2) changes to the contents of the file will affect all file names;
3) Deleting a filename does not affect access to another file name.
Note : The file Inode records its own number of hard links (Inode hard link number is 2), and if the number of hard links becomes 0, the disk will reclaim the inode and its corresponding blocks (that is, the deletion of the file).
Soft Link (soft link) or symbolic link (symbolic Link): The content of file A is the path of file B, then a is a soft link of B.
1) A is a file, it has its own inode and data block, its data block content is the path of B;
2) The system obtains the path of B according to the content of a, then obtains the inode of B through the path, and accesses its data;
3) If you delete B, you will not be able to access B through a (b is not how to access, this is not taken for granted ^ ^).
Data storage: Hard links and soft links (symbolic links)