- In a Linux system, there are two types of links : One called hard link, and the other is called symbolic link or soft link (symbolic link).
1) by default, theln command creates a hard link without parameters. 2) The hard link file is the same as the Inode node number of the source file , and the inode number of the soft link file differs from the source file. 3) The ln command cannot create a hard link to a directory, but it can create soft links that are often used for soft links to directories. 4) Delete the soft link file , the source files and hard-linked files have no effect; 5) Delete file Hard link file, the source files and soft link files have no effect; 6) Delete the original file of the linked file, no impact on the hard-link file, will cause its soft link failure (red white blinking); 7) Delete the original file and its hard link file, the whole file will be deleted. 8) The snapshot feature in many hardware devices is similar to the principle of hard links. 9) Soft connections can cross file systems, and hard links cannot cross file systems.
Describe the difference between soft links and hard links under Linux (2 minutes)