Linuxsymboliclink and hardlink have file A. to create A new link to the file, you can choose symboliclink and hardlink. Symboliclink is to create A new file. the block of the new file stores the inod of directory A (assumed as directory B, that is, directory B file... linux symbolic link and hard link have file A. Now you need to create A new link to this file. you can choose symbolic link and hard link. The symbolic link is used to create A new file. the block of the new file stores the inode and the file name of directory A under directory B in the directory where Directory A is located (assumed as directory B, then, read the block of directory B through the inode of directory B, compare the file name of A, get the inode of A, and then read. Hard link only adds an inode of A and A file name of A in the block of the current directory file (which must be customized), and then reads the block of A through the inode of, however, there are two restrictions: one is not cross-filesystems, and the other is not linked to a directory: one is not cross-filesystems. it can be understood that it can be cross-filesystems. if the filesystem where hard link is located is mounted, the filesystem of the actual data is not mounted. imagine what would happen. the file cannot be linked to a directory. suppose there is a directory C. If it can be linked to a directory, add the inode of directory file C to the block in the current directory and the file name in the current directory. we can use inode of directory C to read the block in directory C, in this way, the inode and file name of the directory files and files recorded in the directory files are obtained, and the files and files under the Directory are read.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.