The role of a Linux under Link file
Linux pays particular attention to the user's privileges, and the role of the linked file is a reflection of this aspect. The location of the source file is hidden, and the user only operates on the linked file.
The difference between two linked files
The linked file is divided into hard-link files and soft-connect (symbolic Link) files.
Hard Link: The file created by default is a hard-link file, that is, the ln file name link file name . The inode of a hard-link file share file is the operation of the physical address of the file, which is equivalent to copying the source file. Deleting the source file and linking the file is still valid. Modifying the source file changes the link file, and the source file changes as the link file is modified. The link file does not have a pointer to the source file that follows the symbol "."
Soft connect: Also called symbolic link. Created by the ln-s file name link file name . A soft connection creates a new inode that holds the path to the source file. When you delete a source file, the content of the linked file does not exist. Modifying the source file changes the link file, and the source file changes as the link file is modified. The link file is followed by a pointing symbol "-"
Three examples
Create File Hello
Create a hard-link file H1
The above can indicate that two files in a Linux system can share an inode number . An inode is a data structure that stores information about a file (including size, modification date, and so on).
As you can see, deleting the source file and the contents of the linked file still exist.
Symbolic Link File:
2014-07-28 20:44:44