Link command
Command format: ln [options] [source file] [target file]
English intent: Link
Function Description: Create a link for the file, where the type of the link is divided into hard links and soft connections two, the default is to create a hard link. Creating a soft connection requires adding the-s parameter
Introduction to Hard links and soft joins:
Hard Links:
Having the same I node and storage block blocks can be seen as a unified file.
Can be identified by the I node
Cannot span partitions
Cannot use for directory
Deleting a hard-link file does not affect other files of the same I node
Soft Links: Windows-like shortcuts
The soft link has its own I node and block blocks, but the data retains the name of the source file and the I node number, where there is no actual file data
lrwxrwxrwx L Soft link Soft link permissions are rwxrwxrwx
Modify any file another change
Delete source files, soft links cannot be used
3-4 Linux Link command