In Linux systems, there are two types of links: One called hard link, and the other is called symbolic or soft link (symbolic link).
1) By default without parameters, the LN command creates a hard link, and the ln command with the-s parameter creates a soft link.
2) The hard link file is the same as the Inode node number of the source file, and the Inode node number of the soft link file is different from the source file
3) The LN command cannot create a hard link to a directory, but you can create a soft link
4) Delete Soft link file, no effect on source file and hard link file
5) Delete file hard link file, the source files and soft link files have no effect
6) Delete the source file of the linked file, no impact on hard-link files, will cause its soft link failure (red white blinking)
7) Delete the source file and its hard link file at the same time, the whole file will be deleted.
8) The snapshot function in many hardware devices, using the same principle as hard link
9) Soft link can cross file system, hard link non-cross file system
The difference between a soft connection and a hard link under Linux