There are two ways to file links in Linux, one is hard link, also referred to as rigid links, the other is symbolic link, also known as symbolic link. To differentiate between the two, review the common Linux ext2 file system. This filesystem uses
A symbolic link is an indirect pointer to a file, unlike the hard links from the previous section, which pointed directly to the I-node of the file. symbolic Links were introduced to get around the limitations of hard links.
Hard links normally
Note: Only for learning Exchange, reprint please specify the source
Similar to Windows system shortcuts, Linux systems also provide a quick way to locate files in different directories. There are two kinds of links in Linux systems: one is hard
0X00 What is a linked file
The linked file in Linux is the equivalent of a shortcut in Windows, which can be accessed by linking files to the source files that the link points to. However, there is a certain difference between the link file under
1.How to use: ln [option] source_file Dist_file (source_file is the file to be established for the linked file, Dist_file is the newly created link file)-F is created, it is deleted with the file name.-I ask before deleting.LN-S ABC CDE establishes
To write a dynamic link library program under Linux, you need to be aware of the symbolic conflicts between DLLs.
When our link library needs to be provided to many Parties for integrated use, we need to face a complex integration environment, one
Hard link and symbolic link (soft link): One of the most important features of a Linux file system is its File link. The link is a reference to the file, so that you can see the file in the file system. The file stored in the disk partition is
First, the mode of useln [option] source_file dist_file (source_file is the file to be established for the linked file, Dist_file is the newly created link file)-F is established and will be deleted with the file name.-I ask before deleting. ln-s
Index node inode:Linux assigns an index node number to each file. inode can be simply understood as a pointer, which always points to the specific storage location of the file on the physical disk. The system locates each file by indexing nodes
Original link: http://blog.csdn.net/janpylx/article/details/6761910First, the mode of useln [option] source_file dist_file (source_file is the file to be established for the linked file, Dist_file is the newly created link file)-F is established
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.